Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Unified Diff: remoting/base/rsa_key_pair.cc

Issue 27832002: Sign self-signed certs with SHA256. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/base/rsa_key_pair.cc
===================================================================
--- remoting/base/rsa_key_pair.cc (revision 231602)
+++ remoting/base/rsa_key_pair.cc (working copy)
@@ -93,8 +93,12 @@
std::string RsaKeyPair::GenerateCertificate() const {
std::string der_cert;
+ // Certificates are SHA1-signed because |key_| has likely been used to sign
+ // with SHA1 previously, and you should not re-use a key for signing data with
+ // multiple signature algorithms.
Wez 2013/10/30 19:45:08 So should we be making arrangements to switch Chro
bemasc 2013/10/30 20:18:45 The important thing here is not really SHA1 vs. SH
Sergey Ulanov 2013/10/31 06:25:29 Why signing the same key with a different hash fun
net::x509_util::CreateSelfSignedCert(
key_.get(),
+ net::x509_util::DIGEST_SHA1,
"CN=chromoting",
base::RandInt(1, std::numeric_limits<int>::max()),
base::Time::Now(),
« content/browser/media/webrtc_identity_store.cc ('K') | « net/ssl/server_bound_cert_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698