Revision as of 14:54, January 3, 2017 by KrisMcG (talk | contribs) (Password encryption)
Jump to: navigation, search

Password encryption

For added security, consider encrypting your passwords in the application.yaml file.

In the jetty > SSL section of the application.yaml file, the following settings can be encrypted:

  • keyStorePassword
  • keyManagerPassword
  • trustStorePassword

In the serverSettings section of the application.yaml file, the following settings can be encrypted:

  • opsUserPassword
  • cmePassword
  • jksPassword
  • webDAVPassword

In the serverSettings > samlSettings section of the application.yaml file, the following settings can be encrypted:

  • encryptionKeyPassword
  • signingKeyPassword
  • tlsKeyPassword

In the serverSettings > accountManagement > smtpServer section of the application.yaml file, the following settings can be encrypted:

  • password

In the cassandraCluster section of the application.yaml file, the following settings can be encrypted:

  • password
  • truststorePassword

Procedure: Encryping passwords

Start

  1. Open the application.yaml file.
  2. For each field that you want to be encrypted, prefix the field value with '"CRYPT:"'. For example:
    ...
      opsUserName: ops
      opsUserPassword: CRYPT:an03xPrxLAu9p==
      ...
  3. Run the GWS application with the '"--encrypt"' parameter followed by the password you need to encrypt. For example:
    $ java -jar gws.jar --encrypt ops
    CRYPT:an03xPrxLAu9p==
    $ _
    The server won't actually start, the application only encrypts the supplied password and then quits. This feature is only supported for JAR (Spring Boot) distributables.
Comments or questions about this documentation? Contact us for support!