The following instructions will guide you through the CSR generation process on Apache Tomcat.

You're required to have administrative (root) access to the server.

  1. Log-in as root, and navigate to the Directory
    The Directory is where you will manage the certificate; it depends upon your server configuration
  2. Enter key generation command
    Generate a keystore and private key by running the following command:
    keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore your_domain_name.jks
    Note: Replace “your_domain_name” with the primary domain you will be securing with the certificate.
  3. Create the keystore
    Enter a keystore password.
    Enter your Organization Information.
    Note: When prompted to enter your First and Last Name, input your “domain name” instead of your personal name.
    Enter y or yes when prompted only if all information is correct.
    Enter your keystore password and press Enter.
    Your keystore has been created in the current directory.
  4. Run the CSR command
    From the newly created keystore, generate your CSR by running the following keytool command:
    keytool -certreq -alias server -file csr.txt -keystore your_domain_name.jks
    Enter your keystore password and press Enter.
    Your CSR has been created in the current directory.
  5. Generate the SSL Certificate
    Locate and open the newly created CSR in a text editor such as Notepad and copy all the text including:
    -----BEGIN CERTIFICATE REQUEST-----
    And
    -----END CERTIFICATE REQUEST-----
    Return to the Generation Form on DomainRegister's client area and paste the entire CSR into the blank text box and continue with completing the generation process.

Upon generating your CSR, your order will enter the validation process with the issuing Certificate Authority (CA) and require the certificate requester to complete some form of validation depending on the certificate purchased. 

After you complete the validation process and receive the trusted SSL Certificate from the issuing Certificate Authority (CA), proceed with the next step installing the SSL certificate on your Tomcat server.

References:

https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html

Found this article interesting?
Subscribe to DomainRegister´s newsletter!

You can unsubscribe at any time by simply clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp s privacy practices here.

  • CSR, Tomcat
  • 0 uporabniku/om je bi članek v pomoč
Vam je bil odgovor v pomoč?

Povezani članki

 What is the difference between SHA-1 and SHA-2 ?

SHA stands for Signature Hashing Algorithm;  It's a mathematical hash that proves the...

 What is an intermediate certificate and how to get it?

An intermediate certificate is a file needed by the web browser to identify the C.A. who issued...

 How can I install my SSL certificate on more than one server?

Many SSL certificate licences allow to install the same certificate on an unlimited number of...

 How To Fix The Warning : "Site Contains Secure & Non-Secure Items"

A SSL certificate provides cover for all your website files and folders, which are included in...

 I have accidentally deleted my "private key": what can I do now?

First check your backups and see if you can re-install the "private key". If you don't know how...