Some of the frequently asked questions (FAQs) on EAR are listed here. We discuss the various problems you could encounter while generating a master key password or while upgrading the application in the current setup. 

Upgrade halted with the following message. How to proceed?

What are symmetric keys?

What is a database master key?

How to open the database master key.

How to check whether symmetric keys are present for a particular database.

How to check whether certificates are present for a particular database. 

How to create the master key password.

How to change the master key password. 

How to take backup of the master key password.

How to restore the master key password?

Why does the master key password fail during upgrade? 

What is the default algorithm used to encrypt the values in postgres? 

What is the datatype of encrypted column in various databases ?

How to back up and restore the MSSQL database. 

System error codes

What is ECTag? Can I change it?

 

  • Upgrade halted. How to proceed?

           You cannot upgrade by using the existing database; please go through the following steps to upgrade:

1. Back up your application.

2. Create a new database using /changeDBServer.bat or /changeDBServer.sh.

3. Start and stop the application once.

4. Restore your application into the new database. 

5. Now, upgrade your application to ServiceDesk Plus 9313 or later.

Top

  •  What are symmetric keys?

A symmetric key or a secret key is an input to the encryption algorithm that helps produce a different output for different keys provided at any given time.

Top

  • What is a database master key?

It is a symmetric key that protects the private keys of certificates and asymmetric keys in the database. The key is encrypted with either the Triple DES or AES_256 algorithm and a user-provided password. Only if the database master key is created, you can create additional symmetric keys and certificates for data encryption. 

Top

  • How to open the database master key.

Open MSSQL Server Management Studio, right-click the database and choose New Query

In the workspace, run the following query: 

OPEN MASTER KEY DECRYPTION BY PASSWORD='<MasterKey_password>'; 

Top

  • How to check whether symmetric keys are present for a particular database. 

Open MSSQL Server Management Studio, right-click the database and choose New Query

In the workspace, run the following query:

select * from sys.symmetric_keys;

The symmetric keys, if present, will be tabulated in the results.

Top

  • How to check whether certificates are present for a particular database. 

Open MSSQL Server Management Studio, right-click the database and choose New Query

In the workspace, run the following query:

select * from sys.certificates 

The result will tabulate the certificates, if there are any.

Top

  • How to create the master key password.

The user with dbcreator permissions can follow these steps to create the master key password:

Open MSSQL Server Management Studio, right-click the database and choose New Query

In the workspace, run the following query:

CREATE MASTER KEY ENCRYPTION BY PASSWORD='<new_Masterkey_password>';
The master key password must comply with the password policy of the MSSQL-installed machine. 

Top

  • How to change the master key password. 

The user with dbcreator permissions can follow these steps to change the master password:

Open MSSQL Server Management Studio, right-click the database and choose New Query

For regenerating the database master key and all other keys, run the following query:

ALTER MASTER KEY REGENERATE WITH ENCRYPTION BY PASSWORD='<new_Masterkey_password>';

To create an additional master key password, run the following query:

ALTER MASTER KEY ADD ENCRYPTION BY PASSWORD='<new-master_key>';

Note that after you create an alternative master key password, the old master key password will still be functional. 

Top

  • How to take backup of the master key password.

Open MSSQL Server Management Studio, right-click the database and choose New Query

 In the workspace, run the following query:

BACKUP MASTER KEY TO FILE = 'path_to_file' ENCRYPTION BY PASSWORD = '<Masterkey_password>';

Top

  • How to restore the master key password?

Open MSSQL Server Management Studio, right-click the database and choose New Query

In the workspace, run the following query:

RESTORE MASTER KEY FROM FILE = 'path_to_file' DECRYPTION BY PASSWORD = '<masterkey_password_of_backup_database>' ENCRYPTION BY PASSWORD = '<masterkey_password_of_restoring_database>';

The master key password will be restored to the database.

Top

  • Why does the master key password fail during upgrade? 

This can happen of the password doesn't comply with the password policy of the MSSQL-installed machine. 

Top

  • What is the default algorithm used to encrypt the values in postgres? 

AES_256

Top

  • What is the datatype of encrypted column in various databases ?

Postgre: bytea

MSSQL: varbinary

Top

  • How to back up and restore the MSSQL database. 

In MSSQL Server Management, right-click the database to be backed up and go to Tasks>>Backup

The database will be backed up in the given location.

To restore the database, right-click it and choose Restore DataBase.

In the Restore Database dialog box, choose the device option and the backup file path, and click Ok.

Your MSSQL database will be restored.

Note:

If the System.Data.sqlClient.SqlError : The file 'filepath\*.mdf' cannot be overwritten. It is being used by database 'database_name'. (Microsoft.SqlServer.SmoExtended)error is displayed, then choose Files in the Restore Database dialog box.

Go to the Restore As column, rename the *.mdf and *_log.ldf files, and click Ok to restore the database. 

Top

It is the symmetric PGP (Pretty Good Privacy ) key used in postgres to encrypt the data in password columns.The value of the ECTag is encrypted and stored in the product-config.xml file. 

Follow these steps to change it:

Please take a backup before invoking changeKey.bat. 

From <product_home>/ME/ServiceDesk/bin, invoke changeKey.bat followed by the new ECTag value.

changeKey.bat <ECTag value>

The entire database will be decrypted using the old key and encrypted again with the given ECTag value.

Top

全球超过3/5的世界五百强企业在使用ServiceDesk Plus赋能IT服务管理
 
让IT服务变得简单高效!