aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/utils/px5g/px5g.c2
1 files changed, 1 insertions, 1 deletions
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);