vlaci / openconnect-sso

Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs
GNU General Public License v3.0
294 stars 126 forks source link

certificate verify failed: unable to get local issuer certificate #146

Closed chrisarnott86 closed 12 months ago

chrisarnott86 commented 1 year ago

I'm trying to connect to my Org's new vpn, but I'm having issues with the certificate. It is setup to use Microsoft azure AD (saml) for verification. Using the standard openconnect cli I can initiate a connection (although not complete the connection as I need the sso functionality) by providing the CA cert manually as per:

openconnect --cafile=ca.pem vpn.myorg.ac.uk

Using openconnect-sso, I know I need to be able to pass the CA cert for it to verify, but using what I believe should be the right syntax, I'm getting the error "certificate verify failed: unable to get local issuer certificate"

openconnect-sso --server vpn.myorg.ac.uk -- --cafile=ca.pem

Any thoughts as to why it seems the ca cert isn't being passed to openconnect-sso?

I note that this issue did come up before (#48) but the resolution there was just to update openconnect-sso, I'm using the latest version 0.8.1

chrisarnott86 commented 12 months ago

This issue has been resolved at the server end by adding the CA certificate (which should have been there all along...)

chrisarnott86 commented 12 months ago

Closed