#!/usr/bin/perl # 19.6.1998, Sampo Kellomaki # 31.3.1999, Upgraded to OpenSSL-0.9.2b, --Sampo # 31.7.1999, Upgraded to OpenSSL-0.9.3a, fixed depending on symlinks # (thanks to schinder@pobox.com) --Sampo # 7.4.2001, Upgraded to OpenSSL-0.9.6a --Sampo # # Make a self signed cert $dir = shift; $openssl_path = shift || '/usr/local/ssl/bin'; open (REQ, "|$openssl_path/openssl req -config $dir/req.conf " . "-x509 -days 36500 -new -keyout $dir/key.pem >$dir/cert.pem") or die "cant open req. check your path ($!)"; print REQ <