This is an example work flow on how to create a trust store and perform some common commands. When you have created the trust store or performed updates, you must restart Nexus OCSP Responder to make the updates take effect, that is, to be inserted into the cache.
Create an empty trust store.
certadm new --store="C:\ProgramFiles\Nexus\OCSP Responder\certs\trust.store"
certadm new --store=..\certs\trust.store
Examples:
Add the certificate located in the file newCA.crt to the trust store.
certadm add --store=../certs/trust.store --file=newCA.crt
List the contents of the trust store.
certadm list --store=../certs/trust.store
Example of a list result:
(1) CN=D, C=SE
(2) CN=A, C=SE
(3) CN=C, C=SE
(4) CN=B, C=SE
(5) CN=Q, C=SE
Example: Extract the certificate of the second issuer in this list to the file A.crt.
certadm extract 2 --store=../certs/trust.store --file=A.crt
Example: Delete the certificate of the first issuer in the list.
certadm delete 1 --store=../certs/trust.store