File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Unix/installbuilder/datafiles Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 403403}
404404
405405GenerateKeyCert() {
406- $OPENSSL_PATH req -x509 -sha256 -newkey rsa:2048 -days 3650 -nodes -config $cnffile -keyout $keyfile -out $certfile
406+ $OPENSSL_PATH req -x509 -sha256 -newkey rsa:3072 -days 3650 -nodes -config $cnffile -keyout $keyfile -out $certfile
407407}
408408
409409HandleConfigFiles() {
@@ -465,6 +465,13 @@ DeleteUnsupportedCertificate() {
465465 echo "************************************************************"
466466 rm -rf $certdir*
467467 fi
468+
469+ if [ `$OPENSSL_PATH x509 -in $certfile -text | grep "Public-Key"| sed 's/[^0-9]*//g'` -lt 3072 ]; then
470+ echo "************************************************************"
471+ echo "* Deleting certificates whose public key is less than 3072 *"
472+ echo "************************************************************"
473+ rm -rf $certdir*
474+ fi
468475 fi
469476}
470477
You can’t perform that action at this time.
0 commit comments