Tôi chạy lệnh sau đây để tạo ra một tập tin JKS từ một tập tin PFX để sử dụng trong Tomcat:java.io.IOException: thất bại trong việc giải mã nhập nội dung an toàn: javax.crypto.BadPaddingException: Với khối thức không đúng đệm
keytool -importkeystore -srckeystore PFX_P12_FILE_NAME -srcstoretype pkcs12 -srcstorepass PFX_P12_FILE -srcalias SOURCE_ALIAS -destkeystore KEYSTORE_FILE -deststoretype jks -deststorepass PASSWORD -destalias ALIAS_NAME
Nhưng tôi nhận được lỗi sau:
keytool error: java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded
như thế nào điều này gây ra và làm thế nào tôi có thể giải quyết nó?
trên nền tảng cửa sổ :) – shwetakpgt
Xem http://stackoverflow.com/questions/10338543/what-causes-keytool-error-failed-to-decrypt-safe-contents-entry –