in reply to Perl and X.509
you may want to check out: Introducing SSL and Certificates using SSLeay , it may help.