Hi,
This is a newbie question, please forgive my ignorance. I am trying to upload a certificate that is needed to call a web service. The organization that hosts the service has provided a pkcs12 certificate. After converting it to serveral pem files (cert, key and one combined) I have been able only to upload the cert.pem file. When calling the endpoint it returns the error that the handshake has failed.
Steps taken
- Called the web service with Postman -> the service returns an error, indicating that it needs a certificate.
- Downloaded the X-TEST.p12 file from the organization, hosting the web service. The file is a pkcs12 file.
- Converted the X-TEST.p12 file to a cert file with openssl: openssl pkcs12 -in .\X-TEST.p12 -out xtest.crt.pem -clcerts -nokeys
- Converted the X-TEST.p12 file to a key file with openssl: openssl pkcs12 -in .\X-TEST.p12 -out xtest.key.pem -nocerts -nodes
- In Postman added the cert and key file to the domain
- Tested the web service in Postman -> success
- Converted the X-TEST.p12 file to a combined file with openssl: openssl pkcs12 -in .\X-TEST.p12 -out xtest.pem
- Opened the Tyk dashboard, navigated to “Certificates”
- Tried adding the combined file to Tyk (since I thought that this is what it is asking) -> Error: “Could not create certificate:”
- Tried adding the cert file to Tyke -> success
- Added an API for the web service
- Added the header for “content-type” “text/xml”
- Added the body request transform to output a fixed XML, the same as in Postman
- Added the certificate to the API
- Uploaded the API
- Called the API from Postman -> Error:
error 96c2a03#characters#8c3ea6 2018-03-07T15:11:40Z http: proxy error: remote error: tls: handshake failure 192.#n#.#n#.4 acceptatie.#domain#.nl
What did I do wrong? How can I make this work?
Ger