forked from pool/apache2
Accepting request 263227 from home:pgajdos
- small improvement of ssl instructions [bnc#891813] OBS-URL: https://build.opensuse.org/request/show/263227 OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=421
This commit is contained in:
committed by
Git OBS Bridge
parent
bf5cc252d9
commit
f64d31d835
@@ -182,14 +182,14 @@ modcrt=`$openssl x509 -noout -modulus -in $sslcrtdir/${name}server.crt | sed -e
|
||||
modkey=`$openssl rsa -noout -modulus -in $sslkeydir/${name}server.key | sed -e 's;.*Modulus=;;' || myexit $LINENO $?`
|
||||
|
||||
if [ ".$modcrt" != ".$modkey" ]; then
|
||||
error "mkcert.sh:Error: Failed to verify modulus on resulting X.509 certificate" 1>&2
|
||||
error "gensslcert:Error: Failed to verify modulus on resulting X.509 certificate" 1>&2
|
||||
myexit $LINENO $?
|
||||
fi
|
||||
|
||||
echo;myecho Verify: matching certificate signature
|
||||
$openssl verify -CAfile $sslcrtdir/${name}ca.crt $sslcrtdir/${name}server.crt || myexit $LINENO $?
|
||||
if [ $? -ne 0 ]; then
|
||||
error "mkcert.sh:Error: Failed to verify signature on resulting X.509 certificate" 1>&2
|
||||
error "gensslcert:Error: Failed to verify signature on resulting X.509 certificate" 1>&2
|
||||
myexit $LINENO $?
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user