Hi all (namely Josh :),

I need to perform some server certificate validation with LWP.

a) server cert must be issued by known CA (I have list of CA certs)
b) must not be expired
c) CN must match a server name

I do not care for CRL's.

What I can see looking into SSLeay.xs is that if environment is set
following is called:

  SSL_CTX_load_verify_locations(ctx,CAfile,CAdir);
  SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL);

I tried to get some more info on these calls in openssl
documentation/source, but it was not really helpful. Could you tell me
what kind of checks is performed in such case?

set_verify is called in Net::SSL::connect - perhaps it should be handy,
if the callback functions might be given in some way which would be
passed into SSL_CTX_set_verify to get a better control over a validation
phase.

I could put my hands on if you give me some points.

Thanks a lot for everything.

Pavel

--
Pavel Hlavnicka
Ginger Alliance
www.gingerall.com




Reply via email to