Java EE 6 and Certutil

I have installed Java EE 6 with GlassfishV3. I want to use NSS tools to manage server security i.e. Generating certificates using certutil. However, I cannot find the NSS library and tools in Glassfish. On the other hand, I read the Java EE 6 documentation and says it still supports NSS!

Does anyone know about this?

thanks

+2


a source to share


1 answer


There is one such tool on linux at / usr / bin / certutil. Just add the certificate to the database so you can display the certificates afterwards. To add a certificate issued by a trusted CA just run this command on linux:

$ sudo certutil -A -n ServerCert -t "P,u,u" -d /path/to/glassfish/domains/domain1/config/ directory -i  /path/to/your/server-cert.pem

      



Now, to get a list of installed certificates, run a command like this:

$ sudo certutil -L -d /path/to/glassfish/domains/domain1/config/

      

0


a source







All Articles