Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Auszug
hiddentrue

Nuclos SSL TLS: Java keystore, keytool, openssl pkcs12, JKS, SAN, cacerts, certificate, launcher truststore.

globe with meridians Language: Deutsch · English

hammer and wrench SSL encryption

Secure Nuclos with SSL/TLS – create a Java keystore from certificates, self-signed certificates and verification.

Status
colourPurple
titleHow-to
Status
colourBlue
titleAdministrator
Status
colourGreen
titleUpdated: Jul 2026
Status
colourGrey
titleapplies to Nuclos 4.2026.x

Panel
bgColor#F4F5F7

On this page

Inhalt
maxLevel2
minLevel2

Nuclos can be secured with SSL/TLS. The easiest way is to enable SSL in the installer and provide a ready-made Java keystore there. This page shows how to create and check the keystore.

Create a Java keystore from certificates

Starting point: root certificate, optional intermediate certificates and the private key.

1. Concatenate the certificate chain

Codeblock
languagebash
cat root.crt chain1.crt chain2.crt > certificate.crt

2. Export to PKCS#12

Codeblock
languagebash
openssl pkcs12 -export -inkey private.key -in certificate.crt -name certificate_name -out keystore.p12

3. Convert to a Java keystore (JKS)

Codeblock
languagebash
keytool -importkeystore -srckeystore keystore.p12 -srcstoretype pkcs12 -destkeystore keystore.jks
Info
titleNote

It may be necessary to create the keystore directly on the server (not on another machine).

Self-signed certificate (launcher)

For the launcher the certificate needs a matching subject alternative name and must be added to the launcher's truststore:

Codeblock
languagebash
keytool -genkey -keyalg RSA -alias localhost -keystore keystore.jks -storepass password -keysize 2048 -ext SAN=dns:localhost,ip:127.0.0.1 -dname "CN=test, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown"
keytool -export -alias localhost -file localhost.cer -keystore keystore.jks
keytool -import -v -trustcacerts -alias localhost -file localhost.cer -keystore "<path_to_launcher>\cacerts"

Verify the keystore

Codeblock
languagebash
keytool -v -list -keystore keystore.jks
Tipp
titleTroubleshooting

If the certificate is rejected when accessing the Nuclos address, verifying the keystore helps to check the chain.

Related pages

gear Tomcat administration


Tomcat.

Open →

gear Running Nuclos behind a reverse proxy


Reverse proxy.

Open →