Page 1 of 1

Import server certificate to System Trust Root CA Certificates

Posted: 28 Oct 2020, 14:10
by vijayasri.t
How can I import server certificate to System tab > Java Trust cacerts store ? How can the Import option be enabled?

I can do it from command prompt running as administrator.
keytool -import -v -trustcacerts -file "C:\Users\xxxxx\Desktop\server.cer" -keystore "%JAVA_HOME%\lib\security\cacerts" -keypass changeit -storepass changeit

I am looking for a easier UI way of doing the import that could be suggested to our customer.

Thanks!

Re: Import server certificate to System Trust Root CA Certificates

Posted: 28 Oct 2020, 22:11
by Stephan Classen
The view in your screenshot is a read only view.
To manage the certificates you can go to the open webstart settings and choose the tab "certificates"

The view is almost identical to the one in your screenshot and the import button is enabled.

Re: Import server certificate to System Trust Root CA Certificates

Posted: 28 Oct 2020, 22:13
by Stephan Classen
Also be advised that importing a certificate into the system store has only limited effect.
This is due to the fact that OWS will launch a different JVM for your application. So the certificates of the system JVM will not apply.

Therefore it is recommended to import custom certificates into the user store