I have a requirement where my REST service in node js needs to be consumed over HTTPS. For enabling HTTPS, we need to have 3 params - One key file, once cert file and ca file. For consuming this service, we need to have only the ca file.
I created a set of fresh self signed certificates using Open SSL and I am able to consume my service.
Now, For production deployment, we cannot go with self signed certificates. So, received a key file, cert file and ca file from Certificate authority. Unlike in the self signed certificate I was using, the ca file from Certificate authority contains 2 CA cers -- One Root CA & One Child CA.
While attempting to consume the HTTPS service using this CA file, I am consistently getting error saying : Unable to get issuer certificate/Unable to get local issuer certificate.
Using OpenSSL command, I validated the key & cert files -- Modulus for both match perfectly.
Also, when I attempt to check if the cert was issued using the CA file, I am getting the same error. whereas with the self signed certificates, I am getting Okay response.
Any help would be appreciated.
Thanks in Advance.