Trust this certificate (yes/no): yes Enter your organization account name: myConjurAccount Wrote certificate to /root/conjur-myConjurAccount.pem File /root/.conjurrc exists. Overwrite (yes/no): yes Wrote configuration to /root/.conjurrc
After this step, I ran command - conjur auth login with username - admin from my local machine and I received below error: error: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unspecified certificate verification error)
I tried getting the certificate using:
openssl s_client --showcerts --connect 172.18.0.2:443 < /dev/null 2> /dev/null | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ and saw certificates are same one downloaded via conjur init.
Am i missing anything from ssl side since downloaded the correct certificate?
Typically the self signed certificate is created with using the hostname of the appliance, in this case we are trying to connect using an ip address. I would recommend using the hostname rather than the IP address.
Whats your conjur.config look like, it should have a certificate section within there and should point to the same certificate that exists on the conjur cli container located “~/myConjurAccount-conjur.pem”.
Also of these issues seem to be related to conjur using a self signed certificate. We recommend using this product with a valid certificate in production and you will not run into these issues.