본문 바로가기

카테고리 없음

self signed certificate in certificate chain 에러가 날경우

참고 : https://github.com/heroku/cli/issues/1054  

uendelrocha 아이디로 검색해서 본다.

 

Heroku Login: "Error: self signed certificate in certificate chain" · Issue #1054 · heroku/cli

What is the current behavior? Currently, I am simply trying to login to heroku, but am having continuous struggles doing so. I keep receiving the error: "Error: self signed certificate in cert...

github.com

In Windows 10, follow the steps below:

  1. Open heroku.com on Chrome or Firefox browser and login (or open any other site that uses https (e.g. google.com)).
  2. Right-click the lock and click Certificate to view certificate issuer details.
  3. Open the Certification Path tab.
  4. Choose the proxy certificate (it appears at the top of the list) and press the Show Certificate button.
  5. Open the Details tab and click the Copy to File ... button.
  6. Choose base64 encoded X.509 format (* .cer) and click Next button.
  7. Click the Browse button and enter a location and file name. Remember to save with the extension "cer". Example: D: \Users\uendel\Desktop\proxy.cer
  8. Close the windows and open the Windows command prompt and run the following command line (replace the location with the path where you saved the certificate):
    SET NODE_EXTRA_CA_CERTS=D:\Users\uendel\Desktop\proxy.cer
  9. Revert to the old OpenSSL behaviour:
git config --global http.sslBackend "openssl"
git config --global http.sslCAInfo D:\Users\uendel\Desktop\proxy.cer
  1. Login heroku. A tab will open in the browser. Click the Login button.
    heroku login
  2. Verify that the installation was successful by running
    heroku whoami