deno: an error occurred trying to connect: invalid certificate: UnknownIssuer
Hi,
Just installed deno and try to run welcome.ts file which is mentioned in docs, i am facing this issue. Details are below.
D:\deno>deno run https://deno.land/welcome.ts
Downloading https://deno.land/welcome.ts
WARN RS - Sending fatal alert BadCertificate
an error occurred trying to connect: invalid certificate: UnknownIssuer
an error occurred trying to connect: invalid certificate: UnknownIssuer
D:\deno>deno version
deno: 0.4.0
v8: 7.6.53
typescript: 3.4.1
Anybody faced this issue.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 12
- Comments: 31 (12 by maintainers)
Links to this issue
Commits related to this issue
- added --cert flag for http client (#2301) — committed to geoFlux/deno by geoFlux 4 years ago
- added --cert flag for http client (#2301) — committed to geoFlux/deno by geoFlux 4 years ago
The
--certflag has fixed my issue (i.e., corporate environment with transparent proxies and self signed certificates).I’m in a corporate environment with transparent proxies and self signed certificates. Some way of adding a trusted cert or ignoring invalid certs would be helpful.
for corporate/mitm certs, you can also consider
DENO_TLS_CA_STORE=mozilla,system(or just...=system) option.I think this should be straight-forward to add
--certflag to load additional certificate to HTTP client. I can take a look at thatSame error, can’t connect to PostgreSQL on Linode VPS, the PostgreSQL is on the same host.
I fixed it by using
127.0.0.1instead oflocalhostin PostgreSQL connection URL. Maybe caused by howlocalhostresolved by linode or something like that…Related/Duplicate of #1371?