0
Can someone please help with the below query?
Is there a way to add an intermediate certificate to the file trusted.certs file at C:\Windows\Sun\Java\Deployment via command prompt?
The file trusted.certs
is updated whenever a certificate is imported via the java control panel. This is a manual process.
Is there a way to add the trusted intermediate certificate to trusted.certs
via a script?
In the picture above, whatever intermediate certificates are in trusted.certs
at this location C:\Windows\Sun\Java\Deployment show up under System Trusted Certificates on the java control panel (Security tab->certificates)
For example suppose I have trusted intermediate certificate say C.cert
and I would like to add this to trusted.certs
file at C:\Windows\Sun\Java\Deployment via a script or a command so that it is displayed under System certificates in the java control panel. How this can be achieved?
Why is the import button disabled? – Ramhound – 2019-02-21T00:54:19.653
@Ramhound user not setup as admin probably. – Nishant – 2019-02-21T01:15:56.537
Your going to go resolve that issue before you can run any command in a elevated command prompt – Ramhound – 2019-02-21T01:23:43.053
Thank you @Ramhound When i update the trusted.certs file at C:\Windows\Sun\Java\Deployment, the certificates show up in the system certificates. I have full permissions on the file trusted.certs. What I am after is a way to add an intermediate certificate to 'trusted.certs' via command/script. If the certificate is added to that file, it will automatically show up in under the System trusted certificates. I have admin rights to run commands. – Nishant – 2019-02-21T01:43:00.230