Obtaining a self-signed server certificate

You can use a self-signed certificate to configure SSL communication.

Procedure

To export the self-signed certificate:

  1. From the command line, change to a directory where you created the keystore.
    For best results, use a directory in your application server installation directory.
    For example, navigate to the WL_HOME/user_projects/domains/domain_name directory.
  2. Export the certificate into a file by entering the following command:
    keytool -export -alias cpe-alias -keypass YourKeyPassword -file server.crt -keystore server.keystore

    The server.crt file that contains the self-signed server certificate is generated. You can import this certificate into the trust store of SSL clients.