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

Support OpenSSL >= 3 #52

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed bankid/certs/FPTestcert4_20220818.p12
Binary file not shown.
Binary file added bankid/certs/FPTestcert4_20230629.p12
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
Bag Attributes
localKeyID: A9 F3 0C D7 04 B6 7D 23 86 84 71 C3 E9 42 62 8B 1B D7 75 C3
subject=C = SE, O = Testbank A AB (publ), serialNumber = 5566304928, name = Test av BankID, CN = FP Testcert 4

issuer=C = SE, O = Testbank A AB (publ), serialNumber = 111111111111, CN = Testbank A RP CA v1 for BankID Test

-----BEGIN CERTIFICATE-----
MIIEyjCCArKgAwIBAgIIMLbIMaRHjMMwDQYJKoZIhvcNAQELBQAwcTELMAkGA1UE
BhMCU0UxHTAbBgNVBAoMFFRlc3RiYW5rIEEgQUIgKHB1YmwpMRUwEwYDVQQFEwwx
Expand Down
6 changes: 3 additions & 3 deletions bankid/certs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@


def get_test_cert_p12():
return (Path(__file__).parent / "FPTestcert4_20220818.p12").resolve()
return (Path(__file__).parent / "FPTestcert4_20230629.p12").resolve()


def get_test_cert_and_key():
return (
(Path(__file__).parent / "FPTestcert4_20220818_cert.pem").resolve(),
(Path(__file__).parent / "FPTestcert4_20220818_key.pem").resolve(),
(Path(__file__).parent / "FPTestcert4_20230629_cert.pem").resolve(),
(Path(__file__).parent / "FPTestcert4_20230629_key.pem").resolve(),
)
1 change: 0 additions & 1 deletion bankid/certutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from bankid.exceptions import BankIDError

_TEST_CERT_PASSWORD = "qwerty123"
_TEST_CERT_URL = "https://www.bankid.com/assets/bankid/rp/FPTestcert4_20220818.p12"


def create_bankid_test_server_cert_and_key(destination_path):
Expand Down