From: Felix Fietkau Date: Fri, 6 Nov 2015 10:52:52 +0000 (+0000) Subject: px5g: Use SHA-256 when generating self-signed certificates X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4205078a78f45e7ceafd104454bf4af159113482;p=librecmc%2Flibrecmc.git px5g: Use SHA-256 when generating self-signed certificates Signed-off-by: Martin Blumenstingl SVN-Revision: 47391 --- diff --git a/package/utils/px5g/px5g.c b/package/utils/px5g/px5g.c index eec8fd3f51..d662232021 100644 --- a/package/utils/px5g/px5g.c +++ b/package/utils/px5g/px5g.c @@ -212,7 +212,7 @@ int selfsigned(char **arg) " and validity %s-%s\n", subject, fstr, tstr); x509write_crt_init(&cert); - x509write_crt_set_md_alg(&cert, POLARSSL_MD_SHA1); + x509write_crt_set_md_alg(&cert, POLARSSL_MD_SHA256); x509write_crt_set_issuer_key(&cert, &key); x509write_crt_set_subject_key(&cert, &key); x509write_crt_set_subject_name(&cert, subject);