This document will discuss how to generate a CSR (Certificate Signing Request) from the self-signed certificate within Eucalyptus, and import a CA (Certificate Authority) signed certificate into Eucalyptus. Before we get started, I would like to thank wentzlaf for his how-to on this solution.
Prerequisites
[NOTE] The environment variable $EUCALYPTUS by default is /. If you aren't sure what your $EUCALYPTUS is, just run "echo $EUCALYPTUS". This is important because this is where Eucalyptus is installed. Through the rest of this document $EUCALYPTUS is the default /.
Installing a CA Signed Certificate for the Web Interface
# cd $EUCALYPTUS/var/lib/eucalyptus/keys# cp euca.p12 euca.p12.save# cp euca.p12 euca_test.p12# keytool -delete -alias db -v -keystore euca_test.p12 -storetype pkcs12# keytool -v -keystore euca_test.p12 -storetype pkcs12 -genkeypair -dname "cn=YOURFULLYQUALIFIEDDOMAINNAME, ou=YOURORGANIZATIONUNIT, o=YOURORGANIZATION, c=YOURCOUNTRY, l=YOURTOWN, st=YOURSTATE" -alias db -validity 365 -keyalg RSA -keysize 2048# keytool -v -keystore euca_test.p12 -storetype pkcs12 -alias db -certreq -file euca_test.csr# openssl x509 -in euca_test.pem -inform PEM -out euca_test.der -outform DER# keytool -v -keystore euca_test.p12 -storetype pkcs12 -alias db -importcert -file euca_test.der -trustcacerts# /etc/init.d/eucalyptus-cc stop
# /etc/init.d/eucalyptus-cloud stop
# cp euca_test.p12 euca.p12
# /etc/init.d/eucalyptus-cloud start
# /etc/init.d/eucalyptus-cc startNow when you go to (to follow this example) https://test.something.com:8443, you will arrive at the Eucalyptus Web Interface and will not be prompted to accept a certificate. I hope this helps. If anyone has any additional information, please feel free to comment.
References