...
| Code Block | ||
|---|---|---|
| ||
JAVA_HOME=/usr/lib/jvm/java-1117-openjdk-amd64 KEYTOOL=$JAVA_HOME/bin/keytool cd /opt/unimus $KEYTOOL -genkey -alias unimus -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore unimus.keystore.p12 -validity 3650 |
...
Replace '[insert password here]' with the password you used for keystore creation.
Note: When running Unimus in Docker, add the Java parameters to your docker-compose file and persist the volume containing the keystore file to ensure the SSL certificate is retained if the container is restarted or recreated:
| Code Block | ||
|---|---|---|
| ||
services:
unimus:
image: croc/unimus
environment:
- 'JAVA_OPTS=-Dserver.ssl.key-store=/opt/unimus/unimus.keystore.p12 -Dserver.ssl.keyStoreType=PKCS12 -Dserver.ssl.keyAlias=unimus -Dserver.ssl.key-store-password=[insert password here]'
volumes:
- './unimus:/opt/unimus' |
Restart the Unimus service , and it should (or container). After startup, Unimus will be available only over HTTPS.
Notes and tips
...