I generate a root CA (issuer & subject = ca_hostC...) on the client (hostC)
I sign the client Cert locally with this CA (issuer: ca_hostC, subject: hostC) and generate a csr on hostS, copy it to hostC, sign it using the root CA, ca_hostc and move the ca_cert and the signed cert to the hostS.
I generate context:
Expand|Select|Wrap|Line Numbers
- import M2Crypto.SSL as SSL
- ctx = SSL.Context('tlsv1')
- ctx.load_cert('x.crt', 'private/x.key')
- ctx.load_verify_locations(cafile='ca.crt')
Expand|Select|Wrap|Line Numbers
- s = SSL.Connection(ctx)
- s.connect(server_address)
Expand|Select|Wrap|Line Numbers
- ERROR: 20
- unable to get local issuer certificate
Any thoughts??