Chromium Code Reviews| 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(), |