mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Handle lack of RSA in kekey
This commit is contained in:
@@ -978,7 +978,9 @@ line.
|
||||
sub validate_key_cert
|
||||
{
|
||||
local $key = &read_file_contents($_[0]);
|
||||
$key =~ /BEGIN RSA PRIVATE KEY/i || &error(&text('ssl_ekey', $_[0]));
|
||||
$key =~ /BEGIN RSA PRIVATE KEY/i ||
|
||||
$key =~ /BEGIN PRIVATE KEY/i ||
|
||||
&error(&text('ssl_ekey', $_[0]));
|
||||
if (!$_[1]) {
|
||||
$key =~ /BEGIN CERTIFICATE/ || &error(&text('ssl_ecert', $_[0]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user