Cartika Support Portal

            Generate SHA 2 RSA Key and CSR

            To generate a SHA 2 RSA Key and CSR from the command line, use the following on the web server:

            Linux:

            Change directory to a folder of your choice, on shared machines, use the domain's web root(/hsphere/local/home/user/domain) for easy retrieval:
            • Hsphere
              cd /hsphere/local/home/user/domain/
            • cPanel
              cd /home/user/public_html
            Once in the directory you wish to save the files, issue the following command taking note of the configurable fields(italicized):

            openssl req -new -newkey rsa:2048 -nodes -sha256 -out www.mydomain.com.sha256.csr -keyout www.mydomain.com.key -subj "/C=xx/ST=xx/L=xx/O=xx/CN=www.mydomain.com"

            In the above command, you will need to change/add the following:
            • www.mydomain.com - This needs to be for the domain the client wants protected(pay close attention to the third level domain(www.))
              Also note that there are three(3) areas where you will want to add the domain
            • /C=xx - Where xx is the Country Code (US, CA, FR, etc)
            • /ST=xx - Where xx is the state/province (TX, OR, BC, etc)
            • /L=xx - Where xx is the Location(city) (Dallas, Toronto, Paris, etc)
            • /O=xx - Where xx is the Organization (This isn't necessary but pay attention, some clients will specify). If there is no Organization specified, leave the O= and remove the xx's
            • /CN=www.mydomain.com - Where www.mydomain.com is Common Name(actual URL protected, again pay attention to the third level domain(www.))
            This command will generate both the key and CSR. When the command completes, you can simply cat the files; www.mydomain.com.key and www.mydomain.com.sha256.csr.

            Verify the CSR is SHA2 with any tool you prefer, this is a good one.

            Windows:

            This will be added at a later time.
            Updated: 24 Jun 2018 11:50 AM
            Helpful?  
            Help us to make this article better
            4 0