Files
javademos/java28-features/output/12-pkcs12-openssl.txt
T

28 lines
1.4 KiB
Plaintext

$ JDK 27: keytool -genkeypair -storetype PKCS12 ... ; openssl pkcs12 -info -noout
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
MAC: sha256, Iteration 10000
MAC length: 32, salt length: 20
$ JDK 28: keytool -genkeypair -storetype PKCS12 ... ; openssl pkcs12 -info -noout
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
MAC: PBMAC1, Iteration 1
MAC length: 32, salt length: 8
Mac verify error: invalid password?
error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:386:Global default library context, Algorithm (PBMAC1 : 0), Properties (<null>)
error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:386:Global default library context, Algorithm (PBMAC1 : 0), Properties (<null>)
$ JDK 27 keytool reading the JDK 28 keystore
Keystore type: PKCS12
demo, Dec 3, 2026, PrivateKeyEntry,
$ older keytool reading the JDK 28 keystore: openjdk version "25.0.5.1" 2026-11-17 LTS
Keystore type: PKCS12
demo, Dec 3, 2026, PrivateKeyEntry,
$ older keytool reading the JDK 28 keystore: openjdk version "21.0.13.1" 2026-11-17
keytool error: java.io.IOException: Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBE1.2.840.113549.1.5.14 not available
$ JDK 28: keytool -J-Dkeystore.pkcs12.macAlgorithm=HmacPBESHA256 -genkeypair ... ; openssl pkcs12 -info -noout
MAC: sha256, Iteration 10000
MAC length: 32, salt length: 20