...
Warning |
---|
This section describes how to use self-signed certificates for a test environment ONLY. |
...
Log in to the Remote services server
Go to the
/etc/pki/tls/
folderCopy your self-signed certificate(s) to the
certs
folder and your private key to theprivate
folderConvert the remote RS cert to PCKS12 format, using the domain name of your Remote services server.
Code Block openssl pkcs12 -export -in ${DOMAIN}.crt -inkey ${DOMAIN}.key -name ${REMOTE_SERVICES_FQDN} -out import_cert_key_rs
Convert the Abiquo Server cert to PCKS12 format, using the domain name of your Abiquo Server.
Code Block openssl pkcs12 -export -in ${DOMAIN}.crt -inkey ${DOMAIN}.key -name {$ABIQUO_SERVER_FQDN} -out import_cert_key_server
Go the
/opt/abiquo/tomcat/conf
folderCreate a
.jks
keystore using the following command. Replace${REMOTE_SERVICES}
with the hostname of your Remote services serverCode Block keytool -genkey -keyalg RSA -keystore ${REMOTE_SERVICES}.jks -keysize 2048
Import the Remote services certificate into the RS keystore.
Code Block keytool -importkeystore -deststorepass changeit -destkeystore ${REMOTE_SERVICES}.jks -srckeystore /etc/pki/tls/certs/import_cert_key_rs -srcstoretype PKCS12
Import the Server certificate into the RS keystore.
Code Block keytool -importkeystore -deststorepass changeit -destkeystore ${REMOTE_SERVICES}.jks -srckeystore /etc/pki/tls/certs/import_cert_key_server -srcstoretype PKCS12
...