mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
@ -8,8 +8,8 @@ require './usermin-lib.pl';
|
||||
# Validate inputs
|
||||
$key = $in{'key'} || $in{'keyfile'};
|
||||
$key =~ s/\r//g;
|
||||
$key =~ /BEGIN RSA PRIVATE KEY/ &&
|
||||
$key =~ /END RSA PRIVATE KEY/ || &error($text{'savekey_ekey'});
|
||||
$key =~ /BEGIN (RSA |EC )?PRIVATE KEY/ &&
|
||||
$key =~ /END (RSA |EC )?PRIVATE KEY/ || &error($text{'savekey_ekey'});
|
||||
if (!$in{'cert_def'}) {
|
||||
# Make sure cert is valid
|
||||
$cert = $in{'cert'} || $in{'certfile'};
|
||||
|
Reference in New Issue
Block a user