By default, Teamwork Cloud and WebApp use a self-signed certificate generated during installation. However, for production environments, it is strongly recommended that you use a certificate signed by a (CA). Follow the steps outlined on this page to replace the self-signed certificate with a , provided that you either have a private key and certificate signed by a trusted CA, or a PFX file containing the private key and signed certificate. Changing the self-signed certificate to a CA certificate
Extract the private key to key.pem file. openssl pkcs12 -in <certname.pfx> -nocerts -out key.pem –nodes |
If there is a passphrase associated with the private key, remove the passphrase and generate a new private key file server.key openssl rsa -in key.pem -out server.key |
Extract the certificate to teamworkcloud.crt openssl pkcs12 -in <certname.pfx> -nokeys -out teamworkcloud.crt |
The .pfx file has now been converted to a private key file and a public certificate file. You can now proceed to use these two files to generate the keystore file required by Teamwork Cloud components.
|
The new certificate will have to be converted to a Java keystore for Teamwork Cloud components. Use the following procedure to update the keystore file with your new certificate and private key files.
Locate the default keystore file at <Teamwork_Cloud_installation_directory>\configuration\keystore.p12. Update the keystore file with the new private/public key: Create a PKCS 12 file with the OpenSSL tool: openssl pkcs12 -export -name teamworkcloud -in teamworkcloud.crt -inkey server.key -out keystore.p12 |
In the example above, teamworkcloud is a sample alias. If you use a different alias, remember to update it in the <Teamwork_Cloud_installation_directory>\WebAppPlatform\shared\conf\authserver.properties file. |
Copy the keystore.p12 file to the <Teamwork_Cloud_installation_directory>\configuration directory, replacing the default file with the new one.
Add the public certificate file to the <Teamwork_Cloud_installation_directory>\configuration directory. The public certificate file, or .crt, is the public key from the private/public (.key/.crt) key pair. |
(Recommended) Secure .key and .p12 files with a password. Make sure to keep the .key file in a safe place.
If the default configuration (file names, locations, passwords, aliases, etc.) is not changed, no additional steps are necessary. However, if you are changing the default configuration, then you also need to update the relevant properties in the corresponding files, as described below. Updating Teamwork Cloud configurationUpdate the default values for the properties indicated below in the <Teamwork_Cloud_installation_directory>\configuration\application.conf file if any of the applicable values were changed. https {
# the file name of the certificate or the key store (should be a full path)
file = "configuration/teamworkcloud.crt"
} |
You can customize both the name and the path of the teamworkcloud.crt file. However, we recommend using the default file name and path. If necessary, change them after confirming that the initial installation is successful. |
ssl {
keystorePath = "configuration/keystore.p12"
keystoreType = "pkcs12"
keystorePassword = "nomagic"
keyPassword = "nomagic"
} |
cassandra {
enabled = false
keystorePath = "configuration/keystore.p12"
keystoreType = "pkcs12"
keystorePassword = "nomagic"
truststorePath = "configuration/keystore.p12"
truststoreType = "pkcs12"
truststorePassword = "nomagic"
} |
Updating AuthServer configurationUpdate the default values for the properties indicated below in the <Teamwork_Cloud_installation_directory>\WebAppPlatform\shared\conf\authserver.properties file if any of the applicable values were changed. authentication.server.key-store=../configuration/keystore.p12
authentication.server.key-store-type=PKCS12
authentication.server.key-store-password=nomagic
authentication.server.key-password=nomagic
authentication.server.key-alias=teamworkcloud |
Updating Web Application platform configurationUpdate the default values for the properties indicated below in the <Teamwork_Cloud_installation_directory>\WebAppPlatform\conf\server.xml file if any of the applicable values were changed. <Certificate certificateKeystoreFile="../configuration/keystore.p12"
certificateKeystorePassword="nomagic"
type="RSA"
/> |
Both services (Teamwork Cloud and Webapp) must be restarted once all of the configuration changes are completed. |