How to install a security certificate

how to install a security certificate

Using keytool to install a security certificate

I had this problem and could not find much help online so I think I will post the solution to this problem myself as I'm sure some more people also must be facing this same problem and hope it helps someone.

I had to install an SSL certificate using keytool. As per instructions, I was to type this into my command line (Linux):

Unfortunately, I do not have Linux on my personal laptop, I have Windows 8. As most people doing this kind of stuff, do it in Linux, help online for Windows was minimal.

Anyways, this is how I did it:

Open command prompt in administrator mode. This is very important as, if you don't have admin rights, you will simply be denied access. Click here to see how to do this.

Enter the following in command prompt (admin) (NOTICE sudo is left out)

with the following replacements:

a. Replace SERVER to the name of the server whose certificate you want to install. eg.

b. Replace /PATH/TO/CERT with the full path of the certificate you have downloaded. This must

include the filename with extension as well. If you enter only the directory path, you will again get an "Access is denied" error.

c. Replace /PATH/TO/JAVA with the path of Java_Home. To find this, follow Step 4.

To find the path of Java_Home (if you're using Eclipse), Go to Help in the top ribbon in Eclipse. Help --> About Eclipse --> Installation Details --> Configuration tab. Select all the text in the configuration tab and paste it in a text editor. Use Ctrl + F to find java.home. And the path by the side of this is what you need to put in Step 3. If not using Eclipse, you can find this Java_Home from your environment variables in Control Panel.

If you do all the above steps correctly, you should be prompted for the Java keystore password. If you have not changed this password, it's default value is changeit (or, on certain versions of Mac OS X, changeme ).

When you type it, no characters will be displayed on the screen. This is normal. Hit Enter.

If everything is ok, you will be asked whether you trust the certificate. Type yes.


Category: Insurance

Similar articles: