parent
7cef589e92
commit
0c9cda6a0b
@ -8,8 +8,8 @@ require './usermin-lib.pl';
|
|||||||
# Validate inputs
|
# Validate inputs
|
||||||
$key = $in{'key'} || $in{'keyfile'};
|
$key = $in{'key'} || $in{'keyfile'};
|
||||||
$key =~ s/\r//g;
|
$key =~ s/\r//g;
|
||||||
$key =~ /BEGIN RSA PRIVATE KEY/ &&
|
$key =~ /BEGIN (RSA |EC )?PRIVATE KEY/ &&
|
||||||
$key =~ /END RSA PRIVATE KEY/ || &error($text{'savekey_ekey'});
|
$key =~ /END (RSA |EC )?PRIVATE KEY/ || &error($text{'savekey_ekey'});
|
||||||
if (!$in{'cert_def'}) {
|
if (!$in{'cert_def'}) {
|
||||||
# Make sure cert is valid
|
# Make sure cert is valid
|
||||||
$cert = $in{'cert'} || $in{'certfile'};
|
$cert = $in{'cert'} || $in{'certfile'};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user