https://github.com/bmd007/swedish-bankid-gateway
An example integration to Swedish BankID (exposed by SSE)
https://github.com/bmd007/swedish-bankid-gateway
server-sent-events swedish-bankid swedish-bankid-api swedish-eid
Last synced: about 1 month ago
JSON representation
An example integration to Swedish BankID (exposed by SSE)
- Host: GitHub
- URL: https://github.com/bmd007/swedish-bankid-gateway
- Owner: bmd007
- Created: 2023-07-19T13:46:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-29T22:26:54.000Z (about 1 year ago)
- Last Synced: 2025-05-29T23:28:57.872Z (about 1 year ago)
- Topics: server-sent-events, swedish-bankid, swedish-bankid-api, swedish-eid
- Language: Java
- Homepage:
- Size: 414 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Swedish-BankId-Gateway
## we meed 3 pem contents:
1. truststore: is the Root certificate
2. keystore: is the bankId certificate
3. private-key: is our private key
## Test environment
In **test** environment, files named like FPTestcert5_20240610.p12 are providing `keystore` and `private-key`. `truststore` is a separate file.
Use them commands below to convert the p12 to pem.
#### Note
BankId started to provide FPTestcert5_20240610.pem (in addition to the p12 files). Note that the private key in the FPTestcert5_20240610.pem if encrypted.
So it's easier to use the p12 files and convert them to pem.
### Converting p12 to pem
```
openssl pkcs12 -in trustStore.p12 -out truststore.pem -nodes
```
For test the truststore password is: coolbeans
```
openssl pkcs12 -in FPTestcert5_20240610.p12 -out decrypted-keystore.pem -nodes
```
For test the keystore password is: qwerty123