# Keytool import pfx certificate sip.jks default save format in the current directory
# Enter the password twice sip.jks library (custom format similar pfx certificate private key password), input source again pfx format of the certificate private key password, the contents are not visible
# keytool错误: java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded
D: \ Packages \ jre6 \ bin> the keytool -importkeystore -srckeystore "C: \ the Users \ zhangs \ Desktop \ CNOOC \ the SIP \ New Folder \ sip.pfx" -srcstoretype pkcs12 -destkeystore sip.jks -deststoretype
JKS input target keystore password:
enter the new password again:
enter the source keystore password:
successfully imported alias server entries.
Completed Import command: an imported successfully, 0 failed or canceled
## to modify the certificate store password required to enter source password
D: \ Packages \ jre6 \ bin> keytool -storepasswd -new sip123456 -keystore sip.jks
Enter keystore password:
## View library contains detailed certificate requires a password
D: \ Packages \ jre6 \ bin> keytool.exe -list -keystore sip.jks -v
Enter keystore password: