DS1NMA Blog

keytool을 이용하여 jks파일에서 pkcs12 포맷형태로 키파일 추출

 keytool -importkeystore -srckeystore keystore.jks -destkeystore output_file.p12 -deststoretype PKCS12

cert 파일 추출

 openssl pkcs12 -in outputed_file.p12 -out cert_file.pem -clcerts -nokeys

 

key파일 추출

openssl pkcs12 -in output_file.p12 -out key_file.key -nocerts -des