mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
20 lines
451 B
Perl
Executable File
20 lines
451 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# cert_issue.cgi
|
|
|
|
use strict;
|
|
use warnings;
|
|
no warnings 'redefine';
|
|
no warnings 'uninitialized';
|
|
require './acl-lib.pl';
|
|
our (%in, %text, %config, %access);
|
|
|
|
&ReadParse();
|
|
my $tempdir = &tempname();
|
|
$tempdir =~ s/\/[^\/]+$//;
|
|
&is_under_directory($tempdir, $in{'file'}) ||
|
|
&error($text{'cert_etempdir'});
|
|
print "Content-type: application/x-x509-user-cert\n\n";
|
|
print &read_file_contents($in{'file'});
|
|
&unlink_file($in{'file'});
|
|
|