OSX 12.2.1 openSSL @1.1 기준
# openssl rsa -in 인증서.pem -text > 개인키.key
openssl rsa -in cert.pem -text > private.key
# oepnssl x509 -inform PEM -in 인증서.pem -out 공개키.crt
oepnssl x509 -inform PEM -in cert.pem -out cert.crt
# cat 공개키.crt 중계기관인증서.crt > 신규인증서.pem
cat cert.crt Chain_RootCA_Bundle.crt > cert_new.pem
# openssl pkcs12 -export -name 인증서별칭 -in cert_new.pem -inkey 개인키.key -out 인증서.pfx
openssl pkcs12 -export -name psjco.com -in cert_new.pem -inkey private.key -out cert.pfx
# keytool -importkeystore -srckeystore 인증서.pfx -srcstoretype pkcs12 -destkeystore 인증서.jks -deststoretype jks
keytool -importkeystore -srckeystore cert.pfx -srcstoretype pkcs12 -destkeystore cert.jks -deststoretype jks
# 변환된 인증서 확인
keytool -list -v -keystore cert.jks