PKCS#12 (Public Key Cryptography Standard No12)

최대 1 분 소요

overview

A P12 file is a binary format that combines a certificate chain and a private key into a single, encrypted file. This format is widely used in SSL/TLS certificates and client authentication, providing a convenient way to manage and distribute certificates securely.

Public Key Cryptography Standard #12 == 공개키 암호화 표준 (키스토어 타입중 1)
인증체인과, 개인키가 하나로 암호화, 결합된 파일이며,
바이너리 포맷으로구성되어있고, SSL/TLS 인증서 혹은, 클라이언트 인증에 사용됨

consistency

  • 공개키: 개인키로 복호화할 수 있는 데이터를 암호화할 때 사용
  • 개인키: 암호화된 데이터를 복호화하는데 사용
  • 인증체인: 여러 인증서들(루트 인증서부터 최종 엔티티 인증서까지)이 하나로 결합된 인증서

how to create?

openssl 패키지를 이용해 인증서를 생성하며, 하나의 파일에 개인키, 공개키, 인증체인이 포함됨

# $openssl {포맷} -export -out {파일명} -inkey {개인키파일} -in {인증서파일} -certfile {인증서체인파일}
$ openssl pkcs12 -export -out mycert.p12 -inkey mykey.key -in mycert.crt -certfile mychain.crt

conclusion

인증서와 개인키를 안전하고 편리하게 관리할 수 있는 방법을 제공함

카테고리:

업데이트: