R&D/클라우드

letsencrypt -> JKS

sunshout 2019. 3. 18. 21:11

Letsencrypt로 생성한 certificate를 JAVA에서 인식하는 JKS로 변경하는 방법


전체 프로세스는

PEM 파일 생성 -> PKCS12 형식으로 변경 -> JKS 생성


PEM 파일 생성

letsencrypt-auto certonly --standalone --email <email> -d <domain1>



cert.pem 과 private.pem 을 활용하여 PKCS12 파일 생성

openssl pkcs12 -export -in cert.pem -inkey privkey.pem -out cert.p12 -name root


JKS 생성

keytool -importkeystore -srcstorepass [jks암호] -destkeystore 키스토어명.jks -srckeystore cert.p12 -srcstoretype PKCS12 -storepass [PKCS12암호] 


참조

https://nkcnow.tistory.com/271