I am having trouble verifying my domain with openssl, when i run: openssl s_client -connect www.griffen.io:443 -CAfile /etc/ssl/certs/ca-certificates.crt
I get the following errors:
depth=0 CN = www.griffen.io
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 CN = www.griffen.io
verify error:num=27:certificate not trusted
verify return:1
depth=0 CN = www.griffen.io
verify error:num=21:unable to verify the first certificate
verify return:1
But when I visit the url in the browser, the browser is fine with the certificate, what is happening and why is openssl failing to verify?
Odd, It should have the full chain, because I never pointed it towards just cert.pem. I’m running a custom server so I’ll take a look at its documentation to see what it needs.