Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Cert and Key splitting method. #73

Open
hbldh opened this issue Aug 23, 2024 · 0 comments
Open

New Cert and Key splitting method. #73

hbldh opened this issue Aug 23, 2024 · 0 comments
Assignees

Comments

@hbldh
Copy link
Owner

hbldh commented Aug 23, 2024

  • pybankid version: 1.3.0
  • Python version: 3.7+
  • Operating System: All

Description

The split_certificate method in bankid.certutils could not extract useable PEM client certificate and private key from the 2024-06-10 pfx. Analyse why and write new methods for splitting certificates.

What I Did

The workaround was to copy the certificate part from the released pem file (https://www.bankid.com/en/utvecklare/test#certificate-for-test) to a separate file and the decrypt the key using this method:

openssl.exe pkey -in .\FPTestcert5_20240610.pem -out .\FPTestcert5_20240610_key.pem
@hbldh hbldh self-assigned this Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant