The Cyara encryption tool
(Cyara.Database.Utils.Encryption.Tool.exe
file) is used to
enable the encryption of potentially sensitive database fields when the value
is set. This tool is also used to enable decryption of the data when the
database fields are retrieved.
When you install the Cyara Database Utilities installer, the encryption utility tool is also installed. Refer to the Deployment Guide for installation steps. After you install the tool, certain configuration changes need to be made to encrypt or decrypt the database.
The
Cyara.Database.Utils.Encryption.Tool.exe
file can run
using options/parameters from its configuration file.
Encrypting the Database
To encrypt the database, perform the following:
- Shut down the Services
- Edit the Cyara encryption tool configuration file
- Run the Cyara encryption tool
Before encrypting the database, you must shut down the Cyara Web Portal, Voice Scheduler, and Omni Scheduler. It is critical that the Cyara Web Portal, Voice Scheduler, and Omni Scheduler remain offline until the encryption process is complete.
Before editing the configuration file of the tool, you need to obtain the values for the Certificate Name and Thumbprint fields.
Refer to the Obtaining the Certificate Name and Thumbprint Values section to obtain the Certificate Name and Thumbprint field values.
- In the
Cyara.Database.Utils.Encryption.Tool.exe.config
file, update the keys in the
<EncryptionSettings.UniqueCertificateName>
section with the values for those keys with the customer-specific details.<!-- Database encryption settings. These settings are ignored unless database encryption is licensed. --> <!-- EncryptionSettings.UniqueCertificateName - Distinguished name for the X.509 Certificate used with Database Encryption (e.g. "CN = CyaraPlatformEncryptionExample"). No default. --> <add key="EncryptionSettings.UniqueCertificateName" value="CN = CyaraPlatformEncryptionExample" /> <!-- EncryptionSettings.CertificateThumbprint - Certificate thumbprint to use for encrypting (used with X.509). (e.g. "6f 54 7c 48 87 bb 8f 8c 71 3f fb 50 f9 9b 5c 4c 8f dd 85 3f"). No default. --> <add key="EncryptionSettings.CertificateThumbprint" value="6f 54 7c 48 87 bb 8f 8c 71 3f fb 50 f9 9b 5c 4c 8f dd 85 3f" /> <!-- EncryptionSettings.MachineCertificate - Whether to use the Local Computer key container (as opposed to the Current User key container). True will select the Local Computer key container. Defaults to True. --> <add key="EncryptionSettings.MachineCertificate" value="True" /> <!-- EncryptionSettings.Cipher - The Cipher to use. Valid values are: None, X509, UTF8, AESplusX509. Defaults to None. --> <add key="EncryptionSettings.Cipher" value="AESplusX509" />
-
Update the
<connectionStrings>
section with the connection details for the Microsoft SQL Server database if the details entered during setup were incorrect or have changed.<connectionStrings> <add name="DefaultContext" connectionString="DATA SOURCE= db_host_ip;INITIAL CATALOG= cyaradb;USER ID=cyaraportal;PASSWORD=password;PERSIST SECURITY INFO=True" providerName= "System.Data.SqlClient"/> </connectionStrings>
- Save the Cyara.Database.Utils.Encryption.Tool.exe.config file with these changes.
To encrypt the database, use the following command line syntax:
Cyara.Database.Utils.Encryption.Tool.exe -e
or
Cyara.Database.Utils.Encryption.Tool.exe --encrypt
Decrypting the Database
- Shut down the Services
- Verify the encryption configuration settings
- Run the Cyara encryption tool
- Remove the encryption configuration settings
Before decrypting the database, you must shut down the Cyara Web Portal, Voice Scheduler, and Omni Scheduler. It is critical that the Cyara Web Portal, Voice Scheduler, and Omni Scheduler remain offline until the decryption process is complete.
Before decrypting, the most important thing is that the configuration settings must match those used to encrypt (or partially encrypt) the database. If the database is fully encrypted, the encryption configuration settings must match with the Cyara Web Portal, Voice Scheduler, and Omni Scheduler configuration files.
- Verify and ensure that
the encryption configuration settings of the
Cyara.Database.Utils.Encryption.Tool.exe.config
file match with theweb.config
file. - Verify and ensure that
the encryption configuration settings of the
Cyara.Database.Utils.Encryption.Tool.exe.config
file match with theCyara.Voice.Scheduler.exe.config
file. - Verify and ensure that
the encryption configuration settings of the
Cyara.Database.Utils.Encryption.Tool.exe.config
file match with theCyara.Scheduler.Host.exe.config
file.
To decrypt the database, use the following command line syntax:
Cyara.Database.Utils.Encryption.Tool.exe -d
or
Cyara.Database.Utils.Encryption.Tool.exe --decrypt
Remove the encryption settings from the Cyara Web Portal, Voice Scheduler, and Omni Scheduler.
- In the
web.config file, remove the values of the
<EncryptionSettings.UniqueCertificateName>
section and update the keys as:<!-- EncryptionSettings.UniqueCertificateName - Distinguished name for the X.509 Certificate used with Database Encryption (e.g. "CN = CyaraPlatformEncryptionExample"). No default. --> <add key="EncryptionSettings.UniqueCertificateName" value="" /> <!-- EncryptionSettings.CertificateThumbprint - Certificate thumbprint to use for encrypting (used with X.509). (e.g. "6f 54 7c 48 87 bb 8f 8c 71 3f fb 50 f9 9b 5c 4c 8f dd 85 3f"). No default. --> <add key="EncryptionSettings.CertificateThumbprint" value="" /> <!-- EncryptionSettings.MachineCertificate - Whether to use the Local Computer key container (as opposed to the Current User key container). True will select the Local Computer key container. Defaults to True. --> <add key="EncryptionSettings.MachineCertificate" value="True" /> <!-- EncryptionSettings.Cipher - The Cipher to use. Valid values are: None, X509, UTF8, AESplusX509. Defaults to None. --> <add key="EncryptionSettings.Cipher" value="None" />
- Save the web.config file with these changes.
- In the
Cyara.Voice.Scheduler.exe.config
file, remove the values of the<EncryptionSettings.UniqueCertificateName>
section and update the keys as:<!-- EncryptionSettings.UniqueCertificateName - Distinguished name for the X.509 Certificate used with Database Encryption (e.g. "CN = CyaraPlatformEncryptionExample"). No default. --> <add key="EncryptionSettings.UniqueCertificateName" value="" /> <!-- EncryptionSettings.CertificateThumbprint - Certificate thumbprint to use for encrypting (used with X.509). (e.g. "6f 54 7c 48 87 bb 8f 8c 71 3f fb 50 f9 9b 5c 4c 8f dd 85 3f"). No default. --> <add key="EncryptionSettings.CertificateThumbprint" value="" /> <!-- EncryptionSettings.MachineCertificate - Whether to use the Local Computer key container (as opposed to the Current User key container). True will select the Local Computer key container. Defaults to True. --> <add key="EncryptionSettings.MachineCertificate" value="True" /> <!-- EncryptionSettings.Cipher - The Cipher to use. Valid values are: None, X509, UTF8, AESplusX509. Defaults to None. --> <add key="EncryptionSettings.Cipher" value="None" />
- Save the
Cyara.Voice.Scheduler.exe.config
file.
- In the
Cyara.Scheduler.Host.exe.config
file, remove the values of the<EncryptionSettings.UniqueCertificateName>
section and update the keys as:<!-- EncryptionSettings.UniqueCertificateName - Distinguished name for the X.509 Certificate used with Database Encryption (e.g. "CN = CyaraPlatformEncryptionExample"). No default. --> <add key="EncryptionSettings.UniqueCertificateName" value="" /> <!-- EncryptionSettings.CertificateThumbprint - Certificate thumbprint to use for encrypting (used with X.509). (e.g. "6f 54 7c 48 87 bb 8f 8c 71 3f fb 50 f9 9b 5c 4c 8f dd 85 3f"). No default. --> <add key="EncryptionSettings.CertificateThumbprint" value="" /> <!-- EncryptionSettings.MachineCertificate - Whether to use the Local Computer key container (as opposed to the Current User key container). True will select the Local Computer key container. Defaults to True. --> <add key="EncryptionSettings.MachineCertificate" value="True" /> <!-- EncryptionSettings.Cipher - The Cipher to use. Valid values are: None, X509, UTF8, AESplusX509. Defaults to None. --> <add key="EncryptionSettings.Cipher" value="None" />
- Save the
Cyara.Scheduler.Host.exe.config
file.
Comments
0 comments
Please sign in to leave a comment.