I am using Net::LDAPS to connect to a server (no problems). How can I get the actual x.509 server certificate that is being used for the connection? I found a lib called Crypt::X509 which can decode the certificate.
My goal is to halt the program if the server certificate is expired. Many thanks Eric