[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 10:47:06 CEST 2022




Alexander Sosedkin started a new discussion on tests/system-override-min-rsa-key-bits.sh: https://gitlab.com/gnutls/gnutls/-/merge_requests/1624#note_1055167482

> +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" || \

Needs a `--template` (otherwise it loops infinitely in my testing).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1624#note_1055167482
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/62c7edbc/attachment-0001.html>


More information about the Gnutls-devel mailing list