Closed theseal closed 1 year ago
This is an error. The keyPassword
is intended to be used when using a JKS or PKCS12 file. We don't support encrypted keys other than having them in JKS/PKCS12 packaging.
credential:
name: "test-cred"
certificate: file:/opt/bankidp/config/bankid.cert
private-key: file:/opt/bankidp/config/bankid.key
keyPassword: 1234
See configuration of credentials at: https://github.com/swedenconnect/credentials-support.
Would it be possible to implement? The key pair we receive from BankID is cert and encrypted key so it would easy to use them out of the box.
Everything is possible, but at this point you do have the possibility to use encrypted keys via JKS and/or PKCS#12. I'll make an issue in https://github.com/swedenconnect/credentials-support for this, but for the time being, add your cert and key to a P12.
Results in error:
Example configuration
The key pair is an unpacked version of BankIds
FPTestcert4_20230629.p12
with password1234
: