OS/Linux

crt를 jks 로변환하는 방법

아르비스 2016. 2. 25. 10:44

#> openssl pkcs12 -export -in server.host.crt -inkey server.host.key -certfile cert.crt -out serverkeystore.p12 -name "stg.haha.net"

Enter Export Password: ****

Verifying - Enter Export Password : ****

 

#> /usr/java/jdk1.8.0_60/bin/keytool -importkeystore -deststorepass changeit -destkeypass changeit -destkeystore serverkeystore.jks -srckeystore serverkeystore.p12 -srcstoretype PKCS12 -srcstorepass **** -alias "stg.haha.net"