For companies with distributed structures, a secure connection to the Job Server by means of a signed public key certificate is usually required. This section describes the creation of the certificate and the configuration of the Job Server with a signed public certificate.
Preconditions:
- The Job Server is installed on a server.
Creating a keystore and certificate with Java Keytool
- Open a console with administrator rights on the server.
- Navigate to the folder of the Java installation where the keytool.exe file is located.
- Enter the command to create the keystore and certificate using the following syntax:
- Replace <JOB-SERVER-URL>, <DEPARTMENT>, <COMPANY-NAME>, <LOCATION-TOWN>, <STATE>, <JOB-SERVER-ALIAS-NAME> and <KEYSTORE-NAME> with your own specifications.
- Enter the password for the keystore.
- The file .keystore is located in the same folder as the file keytool.exe.
keytool -genkeypair -dname "cn=<JOB-SERVER-URL>, ou=<DEPARTMENT>, o=<COMPANY-NAME>, l=<LOCATION-TOWN>,c=<STATE>" -alias <JOB-SERVER-ALIAS-NAME> -validity 712 -keyalg RSA -keysize 4096 -ext ExtendedKeyUsage=serverAuth -ext KeyUsage=digitalSignature,keyEncipherment -ext SubjectAlternativeName=DNS:<JOB-SERVER-URL> -keystore <KEYSTORE-NAME>.jks
A private certificate is now stored in the new keystore.
Creating a Certificate Signing Request (CSR file) with Java Keytool
- Open a console with administrator rights on the server.
- Navigate to the folder of the Java installation where the keytool.exe file is located.
- Enter the command to create the Certificate Signing Request using the following syntax:
- Replace <SERVER ALIAS-NAME>, <KEYSTORE-NAME>, <SERVER ALIAS-NAME> and <TOMCAT-SERVER-URL> with your own specifications.
- Enter the password for the keystore.
- The <SERVER-ALIAS-NAME>.csr file is located in the same folder as the keytool.exe file.
keytool -certreq -alias <SERVER-ALIAS-NAME> -keystore <KEYSTORE-NAME>.jks -file <SERVER-ALIAS-NAME>.csr -ext SubjectAlternativeName=DNS:<TOMCAT-SERVER-URL>
Send the CSR file to the appropriate authorized issuing authority.
A signed certificate (CRT file) is returned from the authorized issuing authority.
Importing a signed certificate into Keystore
- Open a console with administrator rights on the server.
- Navigate to the folder of the Java installation where the files keytool.exe and <KEYSTORE-NAME>.jks are located.
- Enter the command to import the certificate into the keystore with the following syntax:
- Replace <CERTIFICATE-NAME>, <KEYSTORE-NAME> and <SERVER-ALIAS-NAME> with your own specifications.
- Enter the password for the keystore.
- The signed certificate is then successfully stored in the keystore.
keytool -importcert -file <CERTIFICATE-NAME>.crt -keystore <KEYSTORE-NAME>.jks -alias "<SERVER-ALIAS-NAME>"
Configuring the connection with the Job Server
- On the server open the initialization file (ec.ini) of the Job Server installation with an editor.
- Add the following runtime options:
- Replace <SSL PORT> and <JOB-SERVER-ALIAS-NAME> with your own specifications.
- The configuration of the initialization file is complete.
-Dde.eplan.eec.jobserver.disablehttps=false
-Dde.eplan.eec.jobserver.httpsPort=<SSL PORT>
-Dde.eplan.eec.jobserver.port=<PORT>
-Dde.eplan.eec.jobserver.aliasurl=https://<JOB-SERVER-ALIAS-NAME>
-Dde.eplan.eec.jobserver.private.aliasurl=http://<JOB-SERVER-ALIAS-NAME>:<PORT>
Entering keystore and password in the preferences
- Start the Job Server.
- Open the menu Window > Settings.
- Navigate to the entry Job Server.
- Enter the file name and the password for the keystore in the HTTPS support section.
Note
To use the secure connection you have to restart the Job Server.