On Thu, Jan 19, 2012 at 2:01 AM, Brad Fitzpatrick <bradfitz@golang.org>wrote: > But not sure ...
13 years, 3 months ago
(2012-01-19 07:01:59 UTC)
#5
On Thu, Jan 19, 2012 at 2:01 AM, Brad Fitzpatrick <bradfitz@golang.org>wrote:
> But not sure how much this matters. When you install the ca_root_nss
> port, it prompts to symlink to /etc/ssl/cert.pem anyway? *shrug*
>
But the default is off. If the root ca certificates aren't loaded, test of
crypto/tls will fail with something like "certificate not signed by
known authroity", and this message won't give the normal user a clear
picture what went wrong.
I'm also wondering should we added a info/warning to initDefaultRoots() in
case that the default ca certs can't be found?
Or, test the existence of root ca certs before TestOSCertBundles?
On Thursday, 19 January 2012 18:01:37 UTC+11, minux wrote: > > > I'm also wondering ...
13 years, 3 months ago
(2012-01-19 23:20:53 UTC)
#6
On Thursday, 19 January 2012 18:01:37 UTC+11, minux wrote:
>
>
> I'm also wondering should we added a info/warning to initDefaultRoots() in
> case that the default ca certs can't be found?
>
>
I share your concerns. Windows version of initDefaultRoots could fail in
many places for many different reasons. None of it will be known to the
user, because all errors are ignored.
For example, expired certificates and such might be OK to ignore. But it
would help user to know that fact when his connection fails with
"certificate not found" error. "Surely, I had this certificate in my store.
Somewhere. ..." (looking puzzled <g>).
Alex
Issue 5532090: code review 5532090: crypto/tls: add FreeBSD root certificate location
(Closed)
Created 13 years, 3 months ago by minux1
Modified 13 years, 3 months ago
Reviewers: brainman
Base URL:
Comments: 0