To request a code signing certificate, you have to provide us a certificate signing request (CSR) generated from the machine you'll use to sign the code. We'll use the information in this file to validate your request and provide the information to anyone downloading your code.
You must generate the CSR from your local machine and not from the web server you're using to host the file.
If you use Windows, you must complete the following steps before generating your CSR.
cmd
as an administrator.bin
directory:
cd C:\Program Files\java\jdkversion number\bin
To store your public and private keys (used to sign your code), you must create a keystore. You'll use this repeatedly throughout the code signing certificate request and installation process.
keytool -genkey -alias codesigncert -keyalg RSA -keysize 2048 -keystore codesignstore
Now, use your keystore to create your certificate signing request (which you will use to request the certificate you purchased from GoWebsite).
keytool -certreq -v -alias codesigncert -file mycsr.pem -keystore codesignstore
OS | Command |
---|---|
Mac OS X | nano mycsr.pem |
Windows | start notepad "mycsr.pem" |