in reply to Perl Script in SSL
A 500 http status code just means that a mysterious something has gone wrong. The first place to look is the error log your webserver keeps. That should give you some idea as to where to look next.