Create a CSR and install and configure your SSL certificate on your WebLogic 8, 9, 10, 11, and 12.x server

Use these instructions to use Java Keytool for WebLogic servers to create your certificate signing request (CSR). Then, use Java Keytool and the WebLogic Administration Console to install and configure your SSL certificate on your WebLogic 8, 9, 10, 11, and 12.x server.

Restart Note: After you've installed your SSL/TLS certificate and configured the server to use it, you must restart your WebLogic server.

  1. To create your certificate signing request (CSR), see WebLogic Server 8 – 12x: Create Your CSR with Java Keytool.

  2. To install your SSL certificate, see WebLogic Server 8 – 12x: Install and Configure Your SSL/TLS Certificate.

I. WebLogic Server 8 – 12x: Create Your CSR with Java Keytool

Use the instructions in this section to first create a new Keystore file and then to create your own Java Keytool commands for generating your WebLogic server CSR.

Important: To avoid getting errors when you install and configure your SSL certificate, we recommend you generate a new Keystore before you create the CSR. This applies to certificate reissues and renewals.

Step 1: Use Keytool to Create a New Keystore

  1. Run Command

    keytool -genkey -alias server -keyalg RSA -keystore your_domain.jks

    In the command above, your_domain should be the name of the domain you want to secure with this SSL certificate. When ordering a Wildcard certificate, do not include the asterisk (*) in the filename (e.g., your_domain). That is not a valid Keytool character.

  2. Create New Keystore

    1. When prompted, enter the information for your SSL certificate.

      Important: When prompted for the first and last name, DO NOT type your first and last name. Instead, type the domain name the certificate is being issued for (e.g., www.yourdomain.com, mail.yourdomain.com, *.yourdomain.com).

    2. When asked to verify your information, type "y" or "yes" to confirm.

    3. Create a password

      Next, you will need to create a password. You will use this password to generate your CSR and to import your certificate. Store this password in a safe, secure place (such as a trusted and secured password manager).

Step 2: Generate a Certificate Signing Request (CSR) from Your New Keystore

Recommended: Save yourself some time. Use the DigiCert Java Keytool CSR Wizard to generate a Keytool command to create your WebLogic CSR. Just fill out the form, click Generate, and then paste your customized Java Keytool command into your terminal.

Preview of Keytool CSR Wizard

If you prefer to build your own Keytool commands to generate your WebLogic CSR, follow the instructions below.

How to Generate a CSR for Apache Using OpenSSL

If you prefer to build your own shell commands to generate your Apache CSR, follow the instructions below.

  1. Run Command

    In Keytool, type the following command:

    keytool -certreq -alias server -keyalg RSA -file your_domain.csr -keystore your_domain.jks

    In the command above, your_domain should be the name of the domain you want to secure with this SSL certificate. When ordering a Wildcard certificate, do not include the asterisk (*) in the filename (e.g., your_domain). That is not a valid Keytool character.

  2. Generate CSR

    1. aWhen prompted, type the password you created earlier (when you created your new Keystore).

    2. Your CSR should now be created.

  3. Back-up Keystore File

    We recommend that you create a back-up copy of the Keystore file before continuing on. Having a back-up of the Keystore file can help resolve issues that may occur during certificate installation.

  4. Order Your SSL/TLS Certificate

    1. Open the your_domain.csr file you created with a text editor.

    2. Copy the text, including the -----BEGIN NEW CERTIFICATE REQUEST----- and -----END NEW CERTIFICATE REQUEST----- tags, and paste it in to the DigiCert order form.

      Ready to order your SSL certificate?

      Buy Now Learn More
  5. Install Certificate

    After you've received your SSL certificate from DigiCert, you can install it on your server.

II. WebLogic Server 8 – 12x: Install and Configure Your SSL/TLS Certificate

If you still need to create a certificate signing request (CSR) and order your certificate, see WebLogic Server 8 – 12x: Create Your CSR with Java Keytool.

After we've validated and issued your SSL certificate, you can install it on your WebLogic 8, 9, 10, 11, or 12.x server (where the CSR was generated) and configure the server to use the certificate.

Step 1: Use Java Keytool to Install Your SSL Certificate in WebLogic

  1. Download Certificate

    Download the your_domain_com.p7b certificate file from your DigiCert Account.

    On the My Orders tab, click the order number link and then click Download.

  2. Install the Certificate File in Your Keystore

    1. Run the command below to install the certificate.

      keytool -import -trustcacerts -alias server -file /your_domain_com.p7b
      -keystore your_domain_com.jks

      Note: Make sure to replace your_domain_com with the domain the certificate is securing.

    2. You should get a confirmation that the "Certificate reply was installed in keystore".

    3. If you are prompted to trust the certificate, type "y" or "yes".

    4. The installation of this file loads all the necessary certificates to your Keystore.

  3. Now you just need to configure your server to use the certificate.

Step II: Configure the Keystore for Use in WebLogic

  1. On your WebLogic server, expand the Servers node and select the server you need to configure.

  2. Next, go to Configuration-->Keystores and SSL.

    Note: Under Keystore Configuration, several default Keystores or previously installed Keystores may be displayed.

  3. To enable your new keystore, under Keystore Configuration, click the Change... link

  4. Select Custom Identity and Java Standard Trust as your keystore configuration type, and then click Continue.

  5. Under Custom Identity Keystore File Name, type the full path to the your_domain.jks file on your WebLogic server.

  6. For Custom Identity Keystore Type, select jks.

  7. For Custom Identity Keystore PassPhrase, type the password you created when creating the Keystore.

    Note: If you have forgotten that password, you will need to begin the process of creating your Keystore from the beginning (see WebLogic Server 8 – 12x: Create Your CSR with Java Keytool).

  8. When asked again, type your Keystore password and confirm.

  9. Click Continue. Then click Finish.

  10. Go back and expand the Server node and select the server you are configuring.

  11. Next, go to Configuration-->Keystores and SSL and under Keystore Configuration, click the Change… link

  12. On the Configure SSL page, select Key Stores as the method in which identity and trust is stored for the WebLogic server.

  13. Specify the Private Key Alias and Passphrase that were used when creating your Keystore.

    Note: If you followed our instructions or used our command generator, "server" is your alias. The passphrase is the keystore password.

  14. Click Continue. Then click Finish.

  15. Reboot the WebLogic server.

    Congratulations! Your Keystore should now be installed and enabled on your WebLogic server.

Testing Your SSL/TLS Certificate Installation

DigiCert® SSL Installation Diagnostic Tool

If your site's publicly accessible, use our Server Certificate Tester to test your SSL/TLS certificate installation; it detects common installation problems.