Skip to content

Commit

Permalink
Version 1.3.0 (#72)
Browse files Browse the repository at this point in the history
* Update test certificates

* Using new test certs and removing old ones

* Fixed pem cert and key

The old exporting functions did not work any more apparently.
Exported them from FPTestcert5_20240610.pem instead of p12.

* Version bump

---------

Co-authored-by: Emil <[email protected]>
  • Loading branch information
hbldh and Emil authored Aug 23, 2024
1 parent 2dde35e commit 9a1dccd
Show file tree
Hide file tree
Showing 13 changed files with 130 additions and 132 deletions.
2 changes: 1 addition & 1 deletion bankid/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Version info
"""

__version__ = "1.2.0"
__version__ = "1.3.0"
version = __version__ # backwards compatibility name
Binary file removed bankid/certs/FPTestcert4_20220818.p12
Binary file not shown.
34 changes: 0 additions & 34 deletions bankid/certs/FPTestcert4_20220818_cert.pem

This file was deleted.

31 changes: 0 additions & 31 deletions bankid/certs/FPTestcert4_20220818_key.pem

This file was deleted.

Binary file removed bankid/certs/FPTestcert4_20230629.p12
Binary file not shown.
32 changes: 0 additions & 32 deletions bankid/certs/FPTestcert4_20230629_cert.pem

This file was deleted.

31 changes: 0 additions & 31 deletions bankid/certs/FPTestcert4_20230629_key.pem

This file was deleted.

Binary file added bankid/certs/FPTestcert5_20240610-legacy.pfx.pfx
Binary file not shown.
Binary file added bankid/certs/FPTestcert5_20240610.p12
Binary file not shown.
66 changes: 66 additions & 0 deletions bankid/certs/FPTestcert5_20240610.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
Bag Attributes
localKeyID: 0D BD D8 B5 3E 15 A0 F1 F6 25 9E 9B D6 01 A6 0B 0F BB DC 5C
subject=C = SE, O = Testbank A AB (publ), serialNumber = 5566304928, name = Test av BankID, CN = FP Testcert 5
issuer=C = SE, O = Testbank A AB (publ), serialNumber = 111111111111, CN = Testbank A RP CA v1 for BankID Test
-----BEGIN CERTIFICATE-----
MIIEyjCCArKgAwIBAgIIG8/maByOzV4wDQYJKoZIhvcNAQELBQAwcTELMAkG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RLVedHtonY+8xFBec/3SrTVcys8KO897WwRU/5UN
dOnJCtp7e6lSOzFIsvutoaNIsEZq7kVDikQ3EgXsB0Cxol4/CLTGLae0znzWRAxn
2pAusNmzInXCjTx57o4+KT5yhjqNIm9ra9XKqGBEqEayFOb2XMD59DelhXb6sX87
H1yrtMSsKEginq0WZ7BBdZ57BuNA/X8YIKMT0UATA5zoAH+QEGXe2fjfPsvYx5Y6
D7y2i9GgfyLXbToxMufYnU9MtZuV6ZjW0E32+NRJvtkNVziDHH6/eNx32LLIP0X5
+J6Ge2gLRnYT3hkKZKxtwR5TEoDCMjvmXTFQifdSjYC0hOn9oLXnjg2ZtQremCym
3emqINt7LXTXb6qSscD5ZsTAkDqJ5WVgPLMimf8iHhvtTLvQE9b8c+FH6o1qzvV2
YnzfYGANQU2VUwN3jR8IfIAw/4kwgDURQQkgoqEq1JFowv7L2h//of5dOO7SCHuv
gH7GxzJbDS4wssRFBHZGpVgK6ZjyPmfemU/MuEnm
-----END CERTIFICATE-----
Bag Attributes
localKeyID: 0D BD D8 B5 3E 15 A0 F1 F6 25 9E 9B D6 01 A6 0B 0F BB DC 5C
Key Attributes: <No Attributes>
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFLTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIBlejBN0MfycCAggA
MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBDI8vnCSzlvchV9XWHNfpP+BIIE
0Mz4WzVngCNRQB9CXNsB0PhfjPNoxbegBDsyGFveeRFude+vJEC/4G7R1/+0ISuN
Hb/GU/Sq0edQO209oE0hYnMB+XsBdkQ+uTakU2ilNYqJZvzPNaYs9XN1rqL0rwd1
u104W23lqeXCX5gVa/hAUaDW+01b450CQS5IuWzgOcp73gCLpUTsaM20khg/1MAX
wqVhSXTnxydfVM2LjbdcfMK8UFou2k8kEzM3FS5SLOhqUGxtf7KnuakxOw0RxC+e
dxAYeBvEjvJfSC+9npb+2lmrSzP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bqEQe0hUCnLFinKYuOeZOVcbtFfP
d6O/vu4X6phDYMR7prrz3lrt3N4251Q0cc/dXQlD0nEJVUl27ZZW+BRNPzOS9bW6
whH73Yqr6fNKUmySCpoOGDp4bGYnhTqTtFXugggCg3GS6R2giEwBd6JJebQAaEGU
j9BvK9bvq91XdONb5EzRBNajKX4CbvwvFWimqCL7b2lx72YH35lgxtqNdFcNlMkn
iF4/H9WKBTg8NHvJpkd1Mvu0Po8rfCPLL7A99kbCuzA3aySOXZtF2STpWTcTrN6K
p/GTGwNkdVmTJTbseFFXWLU09l3RnX46t3xa5S0kBvpc
-----END ENCRYPTED PRIVATE KEY-----

32 changes: 32 additions & 0 deletions bankid/certs/FPTestcert5_20240610_cert.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Bag Attributes
localKeyID: 0D BD D8 B5 3E 15 A0 F1 F6 25 9E 9B D6 01 A6 0B 0F BB DC 5C
subject=C = SE, O = Testbank A AB (publ), serialNumber = 5566304928, name = Test av BankID, CN = FP Testcert 5
issuer=C = SE, O = Testbank A AB (publ), serialNumber = 111111111111, CN = Testbank A RP CA v1 for BankID Test
-----BEGIN CERTIFICATE-----
MIIEyjCCArKgAwIBAgIIG8/maByOzV4wDQYJKoZIhvcNAQELBQAwcTELMAkGA1UE
BhMCU0UxHTAbBgNVBAoMFFRlc3RiYW5rIEEgQUIgKHB1YmwpMRUwEwYDVQQFEwwx
MTExMTExMTExMTExLDAqBgNVBAMMI1Rlc3RiYW5rIEEgUlAgQ0EgdjEgZm9yIEJh
bmtJRCBUZXN0MB4XDTI0MDcwMjIyMDAwMFoXDTI5MDUyODIxNTk1OVowcjELMAkG
A1UEBhMCU0UxHTAbBgNVBAoMFFRlc3RiYW5rIEEgQUIgKHB1YmwpMRMwEQYDVQQF
Ewo1NTY2MzA0OTI4MRcwFQYDVQQpDA5UZXN0IGF2IEJhbmtJRDEWMBQGA1UEAwwN
RlAgVGVzdGNlcnQgNTCCASIwDQYJKoZIhvcNAQE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AkDqJ5WVgPLMimf8iHhvtTLvQE9b8c+FH6o1qzvV2
YnzfYGANQU2VUwN3jR8IfIAw/4kwgDURQQkgoqEq1JFowv7L2h//of5dOO7SCHuv
gH7GxzJbDS4wssRFBHZGpVgK6ZjyPmfemU/MuEnm
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions bankid/certs/FPTestcert5_20240610_key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDcBk3t06JIQCHn
4q7IXU+LxgIaFS4tOM4Is3szlk2xqe5ZeiY+NVRRYNgJ5sGo4byDuM8UFYA3h2mp
U0m5J6V0CuZATcC2B8cH0L0PNEIv8OZavPFlEmxfVyngJIjpXjzr0YltsvnVAEyi
i9R8BazA5yC4ZtlFzCOHjS0Y/4955Au+YWVp9F5a0IiYHl6UT4T9thaPC3Z1dFaM
B4aLGbcbd62wI7A/yH/OeBkQ7rCDPcIkdLVomGBpTzY6EaqBxagw90C1CYChEF3a
gmZjNvkGNJv2wHPvk1CaXT7KnrRh8fTYbQG9KBdDSlgZIgYDYmdsW5cNe76vmUit
gGyTzlDhAgMBAAECggEAa/x4IOJ+wmEfgvShfds2IE6lV3HPwQghLuoP7Ii3Rxw0
zBuES4HXCT2zqmBj6eQopql8kMngrOA7/ovPIh2QObzjtumyTGTSzUYolB684VSl
aiFThJyfLcfU2Jp1y7uhwMeNYJa3wU+tTRW9ysTqPZ7yUy6/Ml93jJ7AZIWBQHvA
RKEA3CYzHfRYyOPHn+KmbWQt4+hj9Iu+BIwj66Swqiww0ADVudEXCIZfoo8Aufd7
uzQUaKf7KFB50ILDLv7lWd4NPptgCQQMtkm1oGqRnRPmz34SUuJAzDJ1K1TYJuCP
EbSMAaeEftEyIbWob8/HPAvbtCEv991KdGi/enjHwQKBgQDskwM20EBTEV+ujyw5
gJV/UnxBAvc/UW4qtqzqophsSnZZrLzbC52OuLq4lPwv4BkgPhn9pFdTWwm0J07n
QA30JB8WG2pyKMhrCdyiRj0RBoJmeqElMEzJWQcvp6eTUGyqhgTDB1B+kEFrGHob
Q0XbcjU7oiJWE4+D9SSCjTI7WQKBgQDuF2eX9b2BUzPpeTPZlL0+N4me2j3fqg4w
eqkKdb1rdQxqReCz3dCBWBs2NvQ0FIx1oGmaq7apfJ4TC76OC4Y+WtzmrldtwF1c
OpHqxt3bzvmoTDXVOufJktuXd6H25WgMrXoJGN8Rme1Cxuxc5u8BV2VzJSTlBgqg
HojZ8mx4yQKBgQCLhYyAuEMnenien2uqog4JICGNyez9l83MPR4v5yLTwvqXmotq
+Ce882+TyrIMnjLTVCzJ7TFfRLKtX/1l3t4b3W3EAPk/SJQipJdN0PTU5KzlOW9u
WlT+7pWRYmQvOmBMFWwbhWXQrs0WF0J0b7F0YZ/Jgq6Ta0fZwCr/H7y/SQKBgCS1
9SIoIN0k8BcqugTtezRxqcWVjv7CoMd20kOrndZIyO5F8fyp0fFvnVqBpKu3E2U7
o6zWlyaQ8WqsX+hU/JD2v6LN9OsWQw7qdP9HRIQU6Me7YH2NRJn/C97R8mY4Pw/d
W7i1Xge/vSaTt3Qno2iIijrz2jl58f94Vc+NIo6JAoGBAMeJlDQ0paM8Zday1pnG
FnF5MhcWTVNZxYhDXO12rTLtj05z7PCTDYhHl2X3ICrTBBiJQdGelhjpx6xCAXU7
OxHLxDwIKBqCb0HqvoEiQuhjLjg7HyHDi6w+CAE4tWakPJZYyV1aVIZWaE/PRbla
KoQXAAs3i65s8WpO2DEzotFN
-----END PRIVATE KEY-----
6 changes: 3 additions & 3 deletions bankid/certs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@


def get_test_cert_p12() -> Path:
return (Path(__file__).parent / "FPTestcert4_20230629.p12").resolve()
return (Path(__file__).parent / "FPTestcert5_20240610.p12").resolve()


def get_test_cert_and_key() -> Tuple[Path, Path]:
return (
(Path(__file__).parent / "FPTestcert4_20230629_cert.pem").resolve(),
(Path(__file__).parent / "FPTestcert4_20230629_key.pem").resolve(),
(Path(__file__).parent / "FPTestcert5_20240610_cert.pem").resolve(),
(Path(__file__).parent / "FPTestcert5_20240610_key.pem").resolve(),
)

0 comments on commit 9a1dccd

Please sign in to comment.