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.

Github Enterprise and HTTPS certs

See original GitHub issue

This is a

  • bug report
  • feature request


VSCode: 1.28.2 Extension: 2.1.1

I’m using Github Enterprise at the company.

I get this error on trying to dl gists:

GIST ERROR: Could Not Insert > Reason: request to failed, reason: unable to verify the first certificate

Our Github Enterprise instance is NOT behind HTTPS proxy. I still set it like this:

Predictably, this has not helped.

Unfortunately let’s just say that there is no way to get our GHE to get proper certificates installed.

Obviously, this may be the core VSCode issue and not the one in your extension. If there’s no way to fix this on your side, pls let me know, I’ll open bug report at main VSCode repo.

Issue Analytics

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

github_iconTop GitHub Comments

mrkafkcommented, Jan 29, 2019

It is so annoying that I cannot access gists that I’ve done some investigation myself.

Octokit seems to provide option for an https agent:

const Octokit = require('@octokit/rest')
const octokit = new Octokit({
  // see "Authentication" section below
  auth: undefined,

  // setting a user agent is required:
  // v1.2.3 will be current @octokit/rest version
  userAgent: 'octokit/rest.js v1.2.3',

  // add list of previews you’d like to enable globally,
  // see
  // Example: ['jean-grey-preview', 'symmetra-preview']
  previews: [],

  // set custom URL for on-premise GitHub Enterprise installations
  baseUrl: '',

  request: {
    // Node.js only: advanced request options can be passed as http(s) agent,
    // such as custom SSL certificate or proxy settings.
    // See
    agent: undefined,

    // request timeout in ms. 0 means no timeout
    timeout: 0

Per :

The following additional options from tls.connect() are also accepted: ca, cert, ciphers, clientCertEngine, crl, dhparam, ecdhCurve, honorCipherOrder, key, passphrase, pfx, rejectUnauthorized, secureOptions, secureProtocol, servername, sessionIdContext.

So there could be a way of specifying local CA root cert or specific HTTPS cert for this.

If you make a test version of the extension, I’m willing to test it. (never compiled VSCode extension myself so I’m not sure if I can do that correctly, but I can test .vsix file)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring TLS - GitHub Enterprise Server 3.3 Docs
You can configure Transport Layer Security (TLS) on your GitHub Enterprise Server instance so that you can use a certificate that is signed...
Read more >
Configuring TLS certificate for Github Enterprise server
Open your domain certificate pem file in Notepad ++. · Add intermediate (DigiCertCA2.pem) certificate under Domain certificate. · Add root ...
Read more >
Don't use self signed certificates on GitHub Enterprise
If there is no Git installed on the VM, it will execute an HTTPS fetch from the repository, that will need the self...
Read more >
SSH certificate authentication for GitHub Enterprise Cloud
GitHub Enterprise Cloud now supports SSH certificates to give enterprises and organizations more control over how their members access their ...
Read more >
Integrate with GitHub | YouTrack Server - JetBrains
If your GitHub Enterprise server has a valid certificate that is signed by a well-known certificate authority (CA), the JVM vendor may have ......
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 Post

No results found

github_iconTop Related Hashnode Post

No results found