How to Import a Certificate into Trust Store

Hi All,

This is a pretty basic/silly question, we're running Sun App Server 8.1 EE on Solaris, I need to import a CA cert into the truststore of the app server for one of my applications. Here's what I'm doing

certutil -A -a -n "XXXX-ca" -t "T,C,C" -d ..../domainX/config -i XXXX.cer

This command seems to work but when I try to list all certificates:

certutil -L -d .../domainX/config

I don't see the "XXXX-ca" certificate. I've tried creating a new certificate db (certutil -N) elsewhere and importing my cert file to see if the problem was with the certificate file, but this works okay.

[632 byte] By [rsiu003a] at [2007-11-27 10:52:01]
# 1

Add your certificate:

certutil -A -n nick_name -t "T,C,C" -i mycert.crt

use -a only if your input (cert) is in ascii format.

View your certificate:

certutil -L -n nick_name -d certdir

Validate it:

certutil -V -n nick_name -b YYMMDDHHMMSSZ -u CV -e -l -d certdir

Listing Certificates in a Database

certutil -L -d certdir

This lists all the certificates in the cert8.db file in the specified directory

Regards

Activexpert

activexperta at 2007-7-29 11:34:56 > top of Java-index,Application & Integration Servers,Application Servers...