Create A Keystore with the self signed private key
For the purposes of this document we will have no truck with Verisign or Thawte for signing our keys.
mkdir <jks_path> cd <jks_path> keytool -genkey -v -alias <alias> -keyalg rsa -keysize 1024 -dname "CN=<hostname>,OU=IT,O=<company name>,L=<city>,S=<state>,C=US" -validity 7000 -keypass <key_password> -keystore <keystore_name>.jks -storepass <keystore_password>
You will need the following fields to set up Weblogic in the Weblogic console:
Save Restart the Weblogic Server
cd /etc/apache2/conf/ssl
# generate server key.
openssl genrsa -des3 -rand /dev/urandom -out ./server.key 1024
# remove password for server key
openssl rsa -in ./server.key -out ./server.pem
# generate CSR
openssl req -new -key server.key -out server.csr
# Self Sign the certificate
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
Add the certificates server.pem and server.crt into your web server