Description

PKI Certificate files are present in 'cd /var/db/certs/common' folder in shell.

Symptoms

I need to know the location of the public-private key-pair and PKI certificates in order to save the file as a backup or to check the files for troubleshooting purposes.

Solution


All the files are present in cd /var/db/certs/common folder in shell.

Sample:

  root% cd /var/db/certs/common
  root% ls -Rlt
  total 20
  drwx------  2 root  wheel  512 Feb 17 18:10 certification-authority
  drwx------  2 root  wheel  512 Feb 17 18:10 local
  drwx------  2 root  wheel  512 Feb 15 21:58 certificate-request
  drwx------  2 root  wheel  512 Feb 15 21:57 key-pair
  drwx------  2 root  wheel  512 Feb 15 18:47 crl
 
  ./db/certs/common/certification-authority:
  total 4
  -rw-r--r--  1 root  wheel  732 Feb 17 18:10 test-profile-ab1.cert
  
  ./db/certs/common/local:
  total 4
  -rw-r--r--  1 root  wheel  789 Feb 17 18:10 ABC12345QRST1XYZ.cert
 
  ./db/certs/common/certificate-request:
  total 4
  -rw-r--r--  1 root  wheel  647 Feb 15 21:58 ABC12345QRST1XYZ.req
 
  ./db/certs/common/key-pair:
  total 4
  -rw-r--r--  1 root  wheel  609 Feb 15 21:57 ABC12345QRST1XYZ.priv