From 14a6d887fccb3974f75845ba37a2140cfd54dd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Thu, 5 Sep 2024 21:25:10 +0200 Subject: [PATCH] Sign self generated DTLS certificate with SHA256 Fixes #1447 ### Details - Sign self generated DTLS certificates with SHA256 instead of deprecated SHA1. --- worker/src/RTC/DtlsTransport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/src/RTC/DtlsTransport.cpp b/worker/src/RTC/DtlsTransport.cpp index b3458c901b..9f2ff0ae01 100644 --- a/worker/src/RTC/DtlsTransport.cpp +++ b/worker/src/RTC/DtlsTransport.cpp @@ -415,7 +415,7 @@ namespace RTC } // Sign the certificate with its own private key. - ret = X509_sign(DtlsTransport::certificate, DtlsTransport::privateKey, EVP_sha1()); + ret = X509_sign(DtlsTransport::certificate, DtlsTransport::privateKey, EVP_sha256()); if (ret == 0) {