diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-11-06 10:52:52 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-06 10:52:52 +0000 |
commit | 4205078a78f45e7ceafd104454bf4af159113482 (patch) | |
tree | ca8e937a9ddeaf63cdef8d1c949fdec2e52652db /package/utils/px5g | |
parent | aebf73f0458d4c201f69c78c2321edc4df59e0aa (diff) | |
download | mtk-20170518-4205078a78f45e7ceafd104454bf4af159113482.zip mtk-20170518-4205078a78f45e7ceafd104454bf4af159113482.tar.gz mtk-20170518-4205078a78f45e7ceafd104454bf4af159113482.tar.bz2 |
px5g: Use SHA-256 when generating self-signed certificates
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 47391
Diffstat (limited to 'package/utils/px5g')
-rw-r--r-- | package/utils/px5g/px5g.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/utils/px5g/px5g.c b/package/utils/px5g/px5g.c index eec8fd3..d662232 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); |