[gnutls-devel] GnuTLS | Make RSA modulus size restrictions configurable (!1624)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Aug 9 11:41:45 CEST 2022




Daiki Ueno commented on a discussion on tests/system-override-min-rsa-key-bits.sh: https://gitlab.com/gnutls/gnutls/-/merge_requests/1624#note_1055248581

> +export GNUTLS_SYSTEM_PRIORITY_FAIL_ON_INVALID=1
> +
> +if ! test -x "$CERTTOOL"; then
> +	exit 77
> +fi
> +
> +. "${srcdir}/scripts/common.sh"
> +
> +testdir=`create_testdir min-rsa-key-bits`
> +
> +unset GNUTLS_SYSTEM_PRIORITY_FILE
> +
> +"$CERTTOOL" --generate-privkey --key-type rsa --bits 512 --outfile "$testdir/rsa-512.pem" || \
> +    fail "unable to generate 512-bit RSA key without min-rsa-key-bits"
> +
> +"$CERTTOOL" --generate-self-signed --load-privkey "$testdir/rsa-512.pem" --outfile "$testdir/cert-rsa-512.pem" || \

Indeed, fixed.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1624#note_1055248581
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20220809/c328fd2b/attachment.html>


More information about the Gnutls-devel mailing list