I need to update an existing Perl application that uses Net::SSleay to send requests to a server. I need to be able to get the certificate after connecting so that I can verify that the ServerCN is correct.