Skip to content

PKCS#8 formatted client certificate key file fails to load in Java demo's mutual authentication #146

@kliein

Description

@kliein

OpenSSL version: OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)
The generated certificate key file format is PKCS#8, but the example only loads PKCS#1 keys.
Please modify the example code to adapt to both formats, or add version-specific parameters when generating certificates.

Error message:
org.bouncycastle.asn1.pkcs.PrivateKeyInfo cannot be cast to org.bouncycastle.openssl.PEMKeyPair


This issue was automatically translated from Chinese.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions