Install an X.509 Certificate
The following article shows how to install an X.509 certificate for transport encryption.
The installation of an X.509 certificate is required to use Transport Layer Security (TLS) and secure authentication with Xtract Core.
About X.509 Certificates
There are two main approaches for creating an X.509 certificate:
- Certificate released by an (internal) certification authority (CA)
- Self-signed certificate
On test environments you can use a self-signed certificate. For production environment it is recommended to use a certificate released by an (internal) certificate authority (CA).
Create and Import the X.509 Certificate
Make sure to have a TLS certificate issued by your IT network team considering the following points:
- The certificate property “Subject Alternative Name” contains the DNS name of the server that runs the SAP Connector Windows service. When activating TLS, the Subject Alternative Name is used as the new hostname.
- The certificate common name (CN) attribute contains the DNS name of the server. To display the Common Name (CN) of the certificate, double-click the certificate in the Cetrificate Manager and navigate to the Details tab.
- Import the certificate to the Windows Certificate Store of the machine, that runs the SAP Connector Windows service using the Microsoft Management Console (mmc.exe). The depicted example uses the server name "TODD":
- Right-click the certificate and navigate to All Tasks > Manage private keys to add a new permission entry for the Windows user that runs the SAP Connector Windows service.
- Enter the object name "NT Service\SAP Connector Service" and click [Check Names] before applying the changes.
The certificate is now available on your machine.
Note
The Windows Certificate Store works with most browsers. NMozilla Firefox offers its own certificate storage. Configure your Firefox browser to trust certificates in the Windows certificate store or import the certificate via an enterprise policy, see Mozilla Support: Setting Up Certificate Authorities (CAs) in Firefox.
Enable TLS in Xtract Core
Follow the steps below to enable TLS for the Xtract Core Windows service:
- Open the following file in the Xtract Core installation directory:
config/servers/tls.json
. If the directory and file do not exist, create them. - Enable TLS in the
tls.json
file and add the details of the certificate. Example: - Restart the Xtract Core service to restart the listener.
The web server now uses the HTTPS protocol for communication. The default port for secured communication is 1338. You can change the port in the listener.json
file using the property securePort, see Network Settings.