[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.20
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
doc
/
perl-Net-SSLeay
/
examples
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 bio.pl
1,204 B
SET
[ EDIT ]
|
[ DEL ]
📄 bulk.pl
1,954 B
SET
[ EDIT ]
|
[ DEL ]
📄 callback.pl
3,194 B
SET
[ EDIT ]
|
[ DEL ]
📄 cb-testi.pl
548 B
SET
[ EDIT ]
|
[ DEL ]
📄 cli-cert.pl
3,805 B
SET
[ EDIT ]
|
[ DEL ]
📄 ephemeral.pl
553 B
SET
[ EDIT ]
|
[ DEL ]
📄 get_authenticated_page.pl
730 B
SET
[ EDIT ]
|
[ DEL ]
📄 get_page.pl
507 B
SET
[ EDIT ]
|
[ DEL ]
📄 get_page_cert.pl
966 B
SET
[ EDIT ]
|
[ DEL ]
📄 https-proxy-snif.pl
4,544 B
SET
[ EDIT ]
|
[ DEL ]
📄 makecert.pl
1,531 B
SET
[ EDIT ]
|
[ DEL ]
📄 minicli.pl
1,340 B
SET
[ EDIT ]
|
[ DEL ]
📄 passwd-cb.pl
809 B
SET
[ EDIT ]
|
[ DEL ]
📄 req.conf
1,232 B
SET
[ EDIT ]
|
[ DEL ]
📄 server_key.pem
963 B
SET
[ EDIT ]
|
[ DEL ]
📄 ssl-inetd-serv.pl
1,642 B
SET
[ EDIT ]
|
[ DEL ]
📄 ssl_diff.pl
631 B
SET
[ EDIT ]
|
[ DEL ]
📄 sslcat.pl
526 B
SET
[ EDIT ]
|
[ DEL ]
📄 sslecho.pl
3,143 B
SET
[ EDIT ]
|
[ DEL ]
📄 stdio_bulk.pl
2,590 B
SET
[ EDIT ]
|
[ DEL ]
📄 tcpcat.pl
422 B
SET
[ EDIT ]
|
[ DEL ]
📄 tcpecho.pl
1,815 B
SET
[ EDIT ]
|
[ DEL ]
📄 x509_cert_details.pl
10,115 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: makecert.pl
#!/usr/bin/perl # 19.6.1998, Sampo Kellomaki <sampo@iki.fi> # 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 # 9.11.2001, EGD patch from Mik Firestone <mik@@speed.stdio._com> --Sampo # # Make a self signed cert use strict; use warnings; use File::Copy; use File::Spec::Functions qw(catfile); my $dir = shift || usage(); my $exe_path = shift || '/usr/local/ssl/bin/openssl'; my $egd = defined( $ENV{EGD_POOL} ) ? "-rand $ENV{EGD_POOL}" : ''; my $conf = catfile($dir, 'req.conf'); my $key = catfile($dir, 'key.pem' ); my $cert = catfile($dir, 'cert.pem'); open (REQ, "|$exe_path req -config $conf " . "-x509 -days 3650 -new -keyout $key $egd >$cert") or die "cant open req. check your path ($!)"; print REQ <<DISTINGUISHED_NAME; XX Net::SSLeay test land Test City Net::SSLeay Organization Test Unit 127.0.0.1 sampo\@iki.fi DISTINGUISHED_NAME ; close REQ; system "$exe_path verify $cert"; # Just to check # Generate an encrypted password too system "$exe_path rsa -in $key -des -passout pass:secret -out $key.e"; ### Prepare examples directory as certificate directory my $hash = `$exe_path x509 -inform pem -hash -noout <$cert`; chomp $hash; my $hash_file = catfile($dir, "$hash.0"); unlink $hash_file; copy($cert, $hash_file) or die "Can't symlink $dir/$hash.0 ($!)"; sub usage { die "Usage: $0 DIR [PATH_TO_OPENSSL]"; }