Nerdy Drunk

Drunk on technology

User Tools

Site Tools


linux:nss

Network Security Services (NSS)

Notes on how to use NSS. Most of the examples below are related to using NSS with Apache.

Import Certificates

pk12util -i DOMAIN.TLD.p12 -d /etc/httpd/alias/ -W P12PASSWORD

  • -i is the P12 file that you wish to import
  • -d is the NSS database directory that you wish to use
  • -W is the P12 password and can be obtained via $(SUBCOMMAND) such as aws ssm get-parameter


List Certificates

certutil -d /etc/httpd/alias/ -L

  • -d is the NSS database directory that you wish to use
  • -L is to list the certificates in the database


Apache NSS Module (mod_nss)

Use certutil to find the certificate nick name and update the NSSNickName in /etc/httpd/conf.d/nss.conf

linux/nss.txt · Last modified: 2022/07/21 10:41 by 127.0.0.1