question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

#3926 regression: Self-signed certificates

See original GitHub issue

Describe the bug See previously documented bug: #3341 For those of us behind a corporate proxy with self-signed certificates, we need a way to configure that. With the built-in yarn, there’s no clear way to do that.

Reverting to v3.1.1 works.

Expected behavior autorest should function behind a proxy.

Additional context #3341 Breaking change: #3926

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
timotheeguerincommented, Mar 3, 2021

Alternativel would be to remove the --no-default-rc to still use the global yarn config but use YARN_IGNORE_PATH=1 instead to prevent a different version of yarn from being loaded(Issue solved in #3926)

Could do this at least as a short term solution.

0reactions
drmcclellandcommented, Apr 29, 2021

The suggestion in #3341 to install yarn separately worked for me, then I was able to issue the command yarn config set strict-ssl false -g to fix this error message:

AutoRest code generation utility [cli version: 3.2.0; node: v12.18.3, max-memory: 2048 MB]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Yarn log:
--------------------------------------------------
{"type":"info","data":"No lockfile found."}
{"type":"step","data":{"message":"Resolving packages","current":1,"total":4}}
{"type":"error","data":"An unexpected error occurred: \"https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20210428.6.tgz: unable to get local issuer certificate\"."}
{"type":"info","data":"If you think this is a bug, please open a bug report with the information provided in \"C:\\\\Users\\\\dmcclelland1\\\\.autorest\\\\@autorest_csharp@3.0.0-beta.20210428.6\\\\yarn-error.log\"."}
{"type":"info","data":"Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command."}

--------------------------------------------------
Failure:
Error: Package '@autorest/csharp' - '3.0.0-beta.20210428.6' failed to install:
  Failed to install package 'https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20210428.6.tgz' -- Error: Process Failed.Error: Failed to install package 'https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20210428.6.tgz' -- Error: Process Failed.
Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a Self-Signed Certificate? Advantages, Risks ...
Self -signed certificates offer some advantages when used in internal networks and software development phases, however, they can also create ...
Read more >
Does Self-signed certificate differ from CA from a security point ...
When looking at functionality alone, a self-signed certificate offers neither more or less security then one issued from a leading certificate authority.
Read more >
North Carolina Bar Examiners
The public may attend the hearing and may sign up to offer comments. ... self-funded occupational licensing board that grants certificates of qualification ......
Read more >
bonifay rodeo
7,115 likes · 25 talking about this · 3,926 were here. ... Sign up for the newsletter to receive weekly updates for rodeos...
Read more >
Local Testing Using Self-Signed Certificates - BrowserStack
Self -signed certificates are digital certificates for websites which are not signed by a publicly-trusted certificate authority (CA). Given the CA in such ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found