How to import Java Certificates to the System store

microsoft windows

If you ever had the need to import Java certificates to the System store, you might find it difficult because when you wanted to do that you could see that the Import button for the System store has been grayed out.

To achieve this here’s what has to be done:

Open Java Control panel through Windows Control Panel or in the run prompt type the following command:

javaws -viewer

Close the first popup/cache info screen and on the Security tab click on the Certificates button.

Import certificates under the User store by clicking the import button.

Once you have imported all of the certificates create the following folders:

C:\Windows\Sun\Java\Deployment

In this location, we should copy all of the certificates that were previously imported in the User store using Java Control panel.

Along with that we should create two files:

deployment.config
deployment.properties

Open deployment.config file in notepad and insert the following line:

deployment.system.config=file\:
C\:/Windows/Sun/Java/Deployment/deployment.properties

Open deployment.properties file in notepad and insert the following line:

deployment.system.security.trusted.certs=
C\:\\Windows\\Sun\\Java\\Deployment\\trusted.certs

Now, we should navigate to this path:

C:\Users\%userprofile%\AppData\LocalLow\Sun\Java\Deployment\security

Where you should replace %userprofile% with your username.

Copy the trusted.certs file from

C:\Users\%userprofile%\AppData\LocalLow\Sun\Java\Deployment\security

to

C:\Windows\Sun\Java\Deployment

You’re done.

Imported certificates should be now visible under System store in Java Control Panel and should be in use for each user that logs on that Server.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

5 + 10 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.