Set up Microsoft SQL Server in Certificate Manager
This article describes how to install and set up the Microsoft SQL (MSSQL) Server, used in Smart ID Certificate Manager (CM).
Prerequisites
When MS SQL Server is used for the CMDB database, tables and users can be created during installation of the CM server components.
The hardware requirements for MSSQL Server specified by Microsoft, applies for the database machine
Step-by-step instruction
Install Microsoft SQL Server
Information from Microsoft can be found here:Â Microsoft SQL documentation - SQL Server
During installation of the MSSQL Server, set the following options:
Select standard settings
Enable mixed mode authentication
Choose a Login Name, for example,
sa
(where sa in lower-case stands for system administrator)Enter a password
Using MSSQL Server Configuration Manager:
Enable TCP/IP sockets for the MSSQL Server Network Configuration
Define transaction log size
Use the SQL Enterprise Manager to define the size of the transaction log.
Specify restricted or unrestricted file growth in the database properties. Your choice decides whether or not you will have to check the growth of the transaction log on a regular basis. With unrestricted growth there is a risk that all the free disk space is used up.
Edit settings on the CM server
When installing the CM server, include the CMDB component to create the CMDB database. See Install Certificate Manager server components on Windows and Install Certificate Manager server components on Linux.
Enter the host, port, database parameters and password for database system administrator.
Enter the password to be set for the new user in MSSQL:Â
lcmreq
. The user is created during installation of MSSQL Server.Make sure that the MSSQL Server service user can write to the folder specified for CMDB.
After CMDB is created, the cm.conf configuration file is updated with the JDBC connection URLÂ and the chosen password for
lcmreq
.
Secure the connection
Enable TLS support for the connection to the MSSQL Server database.
It can be done directly after installing MSSQL Server or even after the installation of the CM is completed.
A complete guide on how to enable TLS on the MSSQL Server can be found here:Â https://docs.microsoft.com/en-us/sql/database-engine/configurewindows/ enable-encrypted-connections-to-the-database-engine.
The parameters for the JDBC connection URL that is created in the cm.conf configuration file during the CM installation, is going to work with the MSSQL Server regardless if TLS connection is enabled on the MSSQL Server or not.
If the MSSQL Server requires support for TLS encryption, the driver will initiate the TLS certificate exchange. However, the MSSQL Server's TLS certificate will not be validated, but the entire communication will be encrypted. Further information on customizing the connection URL in the cm.conf and thus the TLS (for example, validating the MSSQL Server's certificate etc.) can be found here: Understanding encryption support - JDBC Driver for SQL Server
Set up log in using Windows authentication
After the installation you can configure CM to use the service user to login to the database using Windows authentication. Follow these steps:
Create a new login on the MSSQL Server for the Windows user or Windows group that should run the CF service.
In cm.conf, remove or comment out the following parameter:
Database.user
There is no need to modify the connection URL.Start the CF service with the user chosen in the first step.
Additional information
Copyright 2024 Technology Nexus Secured Business Solutions AB. All rights reserved.
Contact Nexus | https://www.nexusgroup.com | Disclaimer | Terms & Conditions