-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with mutual ssl authentication and PEM files #140
Comments
Thanks for tracking this down! Let me try to create the CA certs and see if I can reproduce this... |
This works for me on Trireme 0.8.8. Can you LMK what version you are using or what version of Apigee Edge? |
I have created an example project at https://github.com/antxxxx/mutual_ssl to illustrate the issue If you start the server at node/server.js using node |
Thanks for creating the reproducer! It looks like on a TLS client we are not adding the CA certs to the key store, which means that the client doesn't offer them to the server, which is why this breaks. |
To be clear, it's not hard to fix so stay tuned. |
Checked in a fix to master. Can you build it and try it out? |
That has fixed it - thanks for the quick response. |
Can you open a case with Support? That way we can track it and make sure that we get it resolved and pushed to production. |
I'd like to do a new Rhino release to pick up a few bug fixes, and then a If you're a customer it's best to open a support request so that the On Mon, Jan 11, 2016 at 10:44 AM, Anthony Brown notifications@github.com
Greg Brail | apigee https://apigee.com/ | twitter @gbrail |
There is an issue when using mutual ssl to connect to a server and the certificates and key are stored in PEM files
If you have this
server certificate signed by intermediate CA 1
client certificate signed by intermediate CA 2
intermediate CA 1 and 2 are both signed by root CA.
if you then put all three CA files in an array called ca, the private key in a variable called key and the client certificate in a variable called client_cert and try to connect to a server set up for mutual ssl using this
Then it works using node, but it does not work when running node inside trieme.
However, if you put the key and client cert inside a jks file, then it does work inside trieme, but obviously does not work when running directly under node
Using PEM files (and also jks file) also works if you have the following
server certificate signed by intermediate CA 1
client certificate signed by intermediate CA 1
intermediate CA 1 is signed by root CA.
The text was updated successfully, but these errors were encountered: