https://wiki.archlinux.org/api.php?action=feedcontributions&user=Shiningdracon&feedformat=atomArchWiki - User contributions [en]2024-03-28T23:59:11ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Network_Security_Services&diff=257087Network Security Services2013-05-15T00:40:50Z<p>Shiningdracon: /* Links and References */ sun.com moved to oracle.com</p>
<hr />
<div>[[Category:Internet Applications]]<br />
== Introduction ==<br />
<br />
Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other security standards.<br />
<br />
==Certificate management==<br />
===List===<br />
For list all certificates:<br />
certutil -d sql:$HOME/.pki/nssdb -L<br />
For list details of a certificate:<br />
certutil -d sql:$HOME/.pki/nssdb -L -n <certificate nickname><br />
===Add===<br />
To add a certificate use:<br />
certutil -d sql:$HOME/.pki/nssdb -A -t <TRUSTARGS> -n <certificate nickname> -i <certificate filename><br />
The TRUSTARGS are three strings of zero or more alphabetic characters, separated by commas. They define how the certificate should be trusted for SSL, email, and object signing, and are explained in the certutil docs or Meena's blog post on trust flags.<br />
<br />
To add a personal certificate and private key for SSL client authentication use the command:<br />
pk12util -d sql:$HOME/.pki/nssdb -i PKCS12_file.p12<br />
This will import a personal certificate and private key stored in a PKCS #12 file. The TRUSTARGS of the personal certificate will be set to "u,u,u".<br />
===Edit===<br />
certutil -d sql:$HOME/.pki/nssdb -M -t <TRUSTARGS> -n <certificate nickname><br />
===Delete===<br />
certutil -d sql:$HOME/.pki/nssdb -D -n <certificate nickname><br />
==Links and References==<br />
* [http://www.mozilla.org/projects/security/pki/nss/ Network Security Services] on mozilla.org.<br />
* [http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html#1034193 Using the Certificate Database Tool] on mozilla.org.<br />
* [http://code.google.com/p/chromium/wiki/LinuxCertManagement Certificate management] on Chromium help.<br />
* [http://blogs.oracle.com/meena/entry/notes_about_trust_flags Managing Certificate Trust flags in NSS Database] on Meena's blog.</div>Shiningdracon