sdk_php
sdk_php copied to clipboard
Correct certificate chain format for `client_service_provider_certificate_chain`
Steps to reproduce:
- "Creating a PSD2 context"
What should happen:
- Create PSD2 Provider
What happens:
- Running into `Error message: Certificate root is not trusted. Make sure that the last certificate in the chain is the root certificate.
SDK version and environment
- Tested on 0.15.0
- [X] Production
Extra info:
I have verified my certificate and its root certificate. I am unsure about the format for the client_service_provider_certificate_chain
parameter value for the request body to the POST /payment-service-credential-provider
endpoint for our certificates?
Assuming I have the three certificates:
- client signing certificate A
- intermediate certificate B
- root certificate C
What should the client_service_provider_certificate_chain
value be?
We have tried many different combinations
- BC with new-line characters (
\n
) and-----BEGIN CERTIFICATE-----
and-----END CERTIFICATE-----
prefix and suffix for both B and C - BC without new-line characters (
\n
) and-----BEGIN CERTIFICATE-----
and-----END CERTIFICATE-----
prefix and without suffix for both B and C - B,C
- [B,C]
- CB ... and so on. Any help would be greatly appreciated.
Hi!
Check the following topic: https://together.bunq.com/d/46832
And this Medium blog: https://medium.com/@superseb/get-your-certificate-chain-right-4b117a9c0fce
@basst85 hello and thanks for your quick response.
I had used the medium blog article previously to validate my certificates and I have also gone through the bunq thread now, but I still seem to be having the same issue as Ryan in the bunq thread.
I have also contacted [email protected]
back in December but have not heard back from them and sent them another follow up email yesterday.