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

Issue 16158005: Adds CreateSelfSignedCertEC to x509_util.h in preparation of persistent DTLS identity store for Web… (Closed)

Created:
7 years, 6 months ago by jiayl
Modified:
7 years, 6 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adds CreateSelfSignedCertEC to x509_util.h in preparation of persistent DTLS identity store for WebRTC. BUG=

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -0 lines) Patch
M net/cert/x509_util.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M net/cert/x509_util_nss.cc View 1 1 chunk +23 lines, -0 lines 2 comments Download
M net/cert/x509_util_nss_unittest.cc View 1 2 chunks +46 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jiayl
This is forked out of https://codereview.chromium.org/15969025/
7 years, 6 months ago (2013-06-04 23:57:58 UTC) #1
jiayl
On 2013/06/04 23:57:58, jiayl wrote: > This is forked out of https://codereview.chromium.org/15969025/ Ping. Could you ...
7 years, 6 months ago (2013-06-06 23:18:23 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/16158005/diff/1/net/cert/x509_util.h File net/cert/x509_util.h (right): https://codereview.chromium.org/16158005/diff/1/net/cert/x509_util.h#newcode51 net/cert/x509_util.h:51: // |subject| is a distinguished name defined in RFC4514. ...
7 years, 6 months ago (2013-06-06 23:26:15 UTC) #3
jiayl
PTAL. Thanks! https://codereview.chromium.org/16158005/diff/1/net/cert/x509_util.h File net/cert/x509_util.h (right): https://codereview.chromium.org/16158005/diff/1/net/cert/x509_util.h#newcode51 net/cert/x509_util.h:51: // |subject| is a distinguished name defined ...
7 years, 6 months ago (2013-06-06 23:45:37 UTC) #4
jiayl
Could you take a look?
7 years, 6 months ago (2013-06-10 23:46:59 UTC) #5
Ryan Sleevi
Please update the BUG= to reflect the bug. In examining this change, I'm trying to ...
7 years, 6 months ago (2013-06-11 20:01:12 UTC) #6
jiayl
It seems x509Certificate::CreateSelfSigned can be used in DTLSIdentityStore to generate the cert. If that's true, ...
7 years, 6 months ago (2013-06-11 20:55:21 UTC) #7
Ryan Sleevi
On 2013/06/11 20:55:21, jiayl wrote: > It seems x509Certificate::CreateSelfSigned can be used in DTLSIdentityStore to ...
7 years, 6 months ago (2013-06-11 21:07:51 UTC) #8
jiayl
It seems these two implementations are essentially the same: libjingle: NSSKeyPair<https://code.google.com/p/chromium/codesearch#chromium/src/third_party/libjingle/source/talk/base/nssidentity.h&cl=GROK&ct=xref_jump_to_def&l=45&gsn=NSSKeyPair> ::Generate<https://code.google.com/p/chromium/codesearch#chromium/src/third_party/libjingle/source/talk/base/nssidentity.cc&ct=xref_usages&gs=cpp:talk_base::class-NSSKeyPair::Generate()@chromium/third_party/libjingle/source/talk/base/nssidentity.cc%257Cdef&l=61&gsn=Generate> chrome X509Certificate: CERTCertificate<https://code.google.com/p/chromium/codesearch#chromium/src/usr/include/nss/certt.h&cl=GROK&l=40&ct=xref_jump_to_def&gsn=CERTCertificate> ...
7 years, 6 months ago (2013-06-11 21:29:01 UTC) #9
Ryan Sleevi
There is no security being provided to libjingle in its current approach, because it always ...
7 years, 6 months ago (2013-06-11 21:31:37 UTC) #10
jiayl
7 years, 6 months ago (2013-06-11 21:51:58 UTC) #11
I see. Then I think we are fine to use X509Certificate::CreateSelfSigned.


On Tue, Jun 11, 2013 at 2:31 PM, Ryan Sleevi <rsleevi@chromium.org> wrote:

> There is no security being provided to libjingle in its current
> approach, because it always runs in the renderer, which we consider to
> be 'attacker controlled' for security boundaries.
>
> On Tue, Jun 11, 2013 at 2:28 PM, Jiayang Liu <jiayl@chromium.org> wrote:
> > It seems these two implementations are essentially the same:
> > libjingle: NSSKeyPair::Generate
> > chrome X509Certificate: CERTCertificate* CreateCertificate
> >
> > The only difference will be that Libjingle creates the RSA private key as
> > sensitive and non-permanent, while the RSAPrivateKey class in Chrome does
> > not provide such an option, but only
> insensitive&non-permanent&not-portable,
> > or sensitive&permanent.
> >
> > Justin & Eric,
> >
> > will it be OK to remove the sensitive attribute from the key?
> >
> >
> >
> >
> >
> >
> > On Tue, Jun 11, 2013 at 2:07 PM, <rsleevi@chromium.org> wrote:
> >>
> >> On 2013/06/11 20:55:21, jiayl wrote:
> >>>
> >>> It seems x509Certificate::CreateSelfSigned can be used in
> >>> DTLSIdentityStore to
> >>> generate the cert. If that's true, this change will be unnecessary.
> >>> Ryan, do you see any problem in using the existing
> >>> x509Certificate::CreateSelfSigned?
> >>
> >>
> >> Depends on what you're using it for!
> >>
> >> Remoting has been fine with it. WebRTC is still going to have to solve
> >> these
> >> problems for DTLS client auth -
> >>
> >>
>
https://code.google.com/p/chromium/codesearch#chromium/src/remoting/base/rsa_...
> >>
> >>
> >>
> >> https://codereview.chromium.org/16158005/
> >
> >
>

Powered by Google App Engine
This is Rietveld 408576698