Trying to do heroku login or netlify login in git bash, getting this error "Error: unable to verify the first certificate" - heroku

$ heroku login
heroku: Press any key to open up the browser to login or q to exit:
Error: unable to verify the first certificate
$ netlify login
Logging into your Netlify account...
» FetchError: request to https://api.netlify.com/api/v1/oauth/tickets?client_id=d6f37de6614df7ae58664cfca524744d73807a377f5ee71f1a254f78412e3750 failed, reason: unable to verify the first certificate

I was able to solve my problem by just renewing my antivirus.It actually needed a valid and trusted server certificate which was issued by the antivirus itself.

Related

ask init error: unable to get local issuer certificate

I am trying to initialize the ask cli using ask init on my git bash command line but it keeps throwing an error
I tried adding credentials to my env variables
i am using windows so the steps are
npm install -g --production windows-build-tools
npm install -g ask-cli
ask init
expect to ask for creds
got:
This command will initialize the ASK CLI with a profile associated with your Amazon developer credentials.
------------------------- Step 1 of 2 : ASK CLI Initialization -------------------------
Switch to "Login with Amazon" page and sign-in with your Amazon developer credentials.
If your browser did not open the page, run the initialization process again with command "ask init --no-browser".
[Error]: Cannot obtain access token. Error: unable to get local issuer certificate

Unable to log in to heroku through CLI

My password for heroku works in the browser but not in the CLI. I've changed my heroku password twice and the same outcome occur after every change: I can log in through my browser, but not through my CLI (using windows powershell if that matters). Here is the error I get in the CL:
PS C:\Users\rjfor\OneDrive\Documents\beyond basics\python projects\webpages\mysite> heroku login
heroku: Enter your login credentials
Email [4workanswers#gmail.com]: y
Password: *********
» Error: Invalid credentials provided.
»
» Error ID: unauthorized
PS C:\Users\rjfor\OneDrive\Documents\beyond basics\python projects\webpages\mysite> heroku login
heroku: Enter your login credentials
Email [4workanswers#gmail.com]: y
Password: *********
» Error: Invalid credentials provided.
»
» Error ID: unauthorized
Has anyone had a similar issue?
Irrespective of what you get on screen please enter the listed below commands.
heroku --version
heroku login
When it ask for the email-d please write 4workanswers#gmail.com (your email id) not y even if it's showing your email on screen
Now enter your password(make sure you type it correctly)
One advice while entering your password. First type your password in a Notepad/gedit/TextEdit than switch browser and open heroku login and than paste the password from the Notepad/gedit/TextEdit. Do it same in terminal/cmd when it ask for password don't write just paste using mouse right click(Primary).
Just to try!!!Update heroku to the latest version
You are typing in y as your email. If you just want to reuse the previous email you just press enter or type in the full email again.

SELF_SIGNED_CERT_IN_CHAIN error while using Heroku Cli

I'm try to use Heroku CLI.
But when I want to do some commamd like:
heroku login, heroku log, etc.
The below error will show
SELF_SIGNED_CERT_IN_CHAIN self signed certificate in certificate chain
How can I sovled it?
I had the same issue however this helped me:
Verify your proxy export
export NO_PROXY='localhost,localnets, <company proxy IP settings>
Then verifying my companies .pem file stored in my user directory:
export NODE_EXTRA_CA_CERTS=~/.ssh/bc.pem
(or wherever you store it.)
Then try
heroku login
Its moreover related to security and firewall settings over machine and network.
If you are in secure network, try to connect over proxies / public network, then you can able to run heroku commands.
Or manually acquire SSL/TLS certificate on machine. Kindly refer to this link

Ispconfig 3: Error: Authentication failed. Error: Critical error Error: Could not connect to server

I am using ispconfig, and I have created a FTP user with the respective password. But when I try to connect to that server I hm experiencing this error.
Error: Authentication failed.
Error: Critical error
Error: Could not connect to server
I tried all the solutions given Here, but to no avail.
So I found the error,
I had used FileZilla to login into the server for uploading some file, and the connection was using the sftp:// protocol.
When I tried to conenct with the ftp account the above error was being reported, even after I updated/confirmed the user password.
Finally I realized that the protocol was wrong and after removing the sftp:// protocol prefix, it defaulted to ftp:// which the server readily accepted.

XCode5 bot fails with SVN of sourcerepo.com : error validating server certificate

I use sourcerepo.com as SVN server. My XCode5 bot complains : error validating server certificate for "https://myproject.sourcerepo.com:443"
- the certificate is not issued by a trusted authority. Use the fingerprint etc....
How can I make my XCode Server accept this svn server and retrieve sources ?
thanks for your advice
Frank
Verify why the certificate is untrusted. (E.g., is it a self-signed certificate?)
Start Terminal and run svn info https://myproject.sourcerepo.com:443/<path-to-repository>. Accept the certificate permanently when prompted.
I found a way to make it work from the Xcode 5 release notes:
https://developer.apple.com/library/ios/releasenotes/developertools/rn-xcode/xc5_release_notes/xc5_release_notes.html
Communicating with a remote SVN repository over HTTPS can fail with an
error similar to “Error validating server certificate for server
name.” Edit the file
/Library/Server/Xcode/Config/xcsbuildd.plist
and change the TrustSelfSignedSSLCertificates key from false to true.
Then, from a Terminal window, run:
sudo killall xcsbuildd
I did exactly the above. To edit the file you actually need to
sudo vi /Library/Server/Xcode/Config/xcsbuildd.plist
After restarting the build daemon I was able to get my Xcode bot to checkout the sources from the remote repository and perform the integration. Hope this helps!

Resources