Fix to drop debug lines

This commit is contained in:
iliajie
2022-10-10 20:55:40 +03:00
parent fd7102ce81
commit bbef983d2f
2 changed files with 2 additions and 2 deletions

View File

@@ -491,7 +491,7 @@ else {
$host = &get_system_hostname();
$cert = &tempname();
$key = &tempname();
open(SSL, "| openssl req -newkey rsa:2048 -x509 -nodes -out $cert -keyout $key -days 1825 -sha256 -subj '/CN=$host/C=US/L=Santa Clara' -addext 'authorityKeyIdentifier=keyid,issuer' -addext 'basicConstraints=CA:FALSE' -addext keyUsage=digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment -addext subjectAltName=DNS:$host,DNS:localhost >/dev/null 2>&1");
open(SSL, "| openssl req -newkey rsa:2048 -x509 -nodes -out $cert -keyout $key -days 1825 -sha256 -subj '/CN=$host/C=US/L=Santa Clara' -addext subjectAltName=DNS:$host,DNS:localhost >/dev/null 2>&1");
print SSL ".\n";
print SSL ".\n";
print SSL ".\n";

View File

@@ -599,7 +599,7 @@ else
openssl version >/dev/null 2>&1
if [ "$?" = "0" ]; then
# We can generate a new SSL key for this host
openssl req -newkey rsa:2048 -x509 -nodes -out $tempdir/cert -keyout $tempdir/key -days 1825 -sha256 -subj "/CN=$host/C=US/L=Santa Clara" -addext 'authorityKeyIdentifier=keyid,issuer' -addext 'basicConstraints=CA:FALSE' -addext keyUsage=digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment -addext subjectAltName=DNS:$host,DNS:localhost >/dev/null 2>&1 <<EOF
openssl req -newkey rsa:2048 -x509 -nodes -out $tempdir/cert -keyout $tempdir/key -days 1825 -sha256 -subj "/CN=$host/C=US/L=Santa Clara" -addext subjectAltName=DNS:$host,DNS:localhost >/dev/null 2>&1 <<EOF
.
.
.