1. 개요
자바의 cacerts에 들어있는 인증서 목록 확인
2. 방법
2-1. keytool
keytool은 $JAVA_HOME/bin 아래에 있다.
# ./keytool Key and Certificate Management Tool Commands: -certreq Generates a certificate request -changealias Changes an entry's alias -delete Deletes an entry -exportcert Exports certificate -genkeypair Generates a key pair -genseckey Generates a secret key -gencert Generates certificate from a certificate request -importcert Imports a certificate or a certificate chain -importpass Imports a password -importkeystore Imports one or all entries from another keystore -keypasswd Changes the key password of an entry -list Lists entries in a keystore -printcert Prints the content of a certificate -printcertreq Prints the content of a certificate request -printcrl Prints the content of a CRL file -storepasswd Changes the store password of a keystore Use "keytool -command_name -help" for usage of command_name
2-2. 실행
# ./keytool -list -keystore ../jre/lib/security/cacerts Enter keystore password: Keystore type: JKS Keystore provider: SUN Your keystore contains 104 entries
인증서 목록을 확인할 수 있다.
만약 패스워드를 물어보면 (위의 Enter keystore password: ) 디폴트 패스워드 changeit 입력한다.