Red5 Documentation


Using DigiCert as your provider requires these steps:

  1. Create your private key and keystore.jks file:
    When asked for first and last name, this is NOT your first and last name, but rather it is your Fully Qualified Domain Name for the site you are securing (example: If you are using a Wildcard Certificate the FQDN must begin with the \ character. (example: \

    keytool -keysize 2048 -genkey -alias tomcat -keyalg RSA -keystore keystore.jks -storepass changeit

    This will bring you through questions like those that follow:

    What is your first and last name?
    What is the name of your organizational unit?
    What is the name of your organization?
    What is the name of your City or Locality?
    What is the name of your State or Province?
    What is the two-letter country code for this unit?
    Is, OU=Dev, O=Red5, L=Boston, ST=MA, C=US correct?
  2. Generate a CSR
    keytool -certreq -keyalg RSA -alias tomcat -file csr.txt -keystore keystore.jks
  3. Open the CSR with a text editor, and copy and paste the text (including the BEGIN and END tags) into the DigiCert web order form.
  4. Log into the DigiCert Management Console and download your SSL Certificate file (ssl_example_com.p7b) to the directory where you saved your keystore during the CSR creation process.
  5. Install the SSL Certificate file to your keystore
    Ensure that you use the exact keystore.jks file that the csr was generated from

    keytool -import -trustcacerts -alias tomcat -file ssl_example_com.p7b -keystore keystore.jks
  6. Export the certificate so that it can be added as the trusted certificate:
    keytool -export -alias tomcat -file tomcat.cer -keystore keystore.jks -storepass changeit -noprompt
  7. The exported certificate file, will now be used to populate the truststore. The password for the truststore must be provided. It can be the same, or different, to the one for the keystore. You will need this password for the file.
    keytool -import -trustcacerts -alias tomcat -file tomcat.cer -keystore truststore.jks -storepass changeit -noprompt

Additional Information