http://www.perlmonks.org?node_id=449425


in reply to SSL Implementation under Perl

SSL is implemented at the transport layer. Since it sounds like you're talking about a web server (you mention CGI.pm), this means that it is part of the web server. In fact, it's sort of it's own sub-protocol: http-over-ssl, commonly called https (generally runs on a different port: 443 instead of 80).

Now, I can only guess that you're using Apache as your web server (possibly with mod_perl), since you don't give any further info. If that's the case, you want to look into an apache module called mod_ssl... this is an extension to apache to implement https. You'll need to change your httpd.conf file as well, and, as mentioned above, purchase an SSL certificate.

In short, it's not a perl issue, at all. It's something you've got to configure into your web server.

------------ :Wq Not an editor command: Wq

Replies are listed 'Best First'.
Re^2: SSL Implementation under Perl
by Andre_br (Pilgrim) on Apr 19, 2005 at 22:51 UTC
    Im using my host's shared certificate, wich is ok. I only thought that it would be necessary also changes in the scripts because Im receiving error messages when I try to execute my scripts using the secure path. Bit, as you have said theres nothing on Perl about it, I presume they have the cgi execution misconfigured - have asked them to look it up then. Thanks a lot folks!

      Check your path to the script. I am doing this also and have to use something like this for the form tag action:

      https://secure.server.net/~userid/cgi-bin/myscript.pl
        Hey, thanks for the tip kgraff

        But they told me that, after all, cgi scripts do not work with the shared certificate, that I would have to buy and install my own certificate in order to have SSL-supported cgi.

        You guys know if this may in fact happen?

        Thanks

        Andre_br