Import server certificate to System Trust Root CA Certificates

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
vijayasri.t
Posts: 13
Joined: 27 Jul 2020, 12:48

Import server certificate to System Trust Root CA Certificates

Post 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!
Attachments
Capture.PNG
Capture.PNG (69.38 KiB) Viewed 4027 times

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Import server certificate to System Trust Root CA Certificates

Post 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.

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Import server certificate to System Trust Root CA Certificates

Post 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

Post Reply