Skip to content

Commit

Permalink
Sign self generated DTLS certificate with SHA256
Browse files Browse the repository at this point in the history
Fixes #1447

### Details

- Sign self generated DTLS certificates with SHA256 instead of deprecated SHA1.
  • Loading branch information
ibc committed Sep 5, 2024
1 parent cff9e78 commit 14a6d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/src/RTC/DtlsTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 14a6d88

Please sign in to comment.