lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 292 forks source link

lpass login: Error: SSL peer certificate or SSH remote key was not OK. #540

Closed hansmannaerts closed 10 months ago

hansmannaerts commented 4 years ago

Hi,

I am trying to use lastpass-cli on cygwin but everytime i try to login i get: Error: SSL peer certificate or SSH remote key was not OK.

What could be the reason of this error?

Mvg, Hans Mannaerts

loalf commented 3 years ago

I'm having the same issue

chrisschaaf commented 3 years ago

For macos at least, I resolved this by reinstalling openssl. brew reinstall openssl@1.1 - might see if something similar on cygwin works for you!

abhijitpjoshi commented 3 years ago

On MacOS I am getting the same error and brew reinstall openssl@1.1 couldn't fix it. Can someone help?

isagarsarkar commented 2 years ago

I am also facing same issue with openssl@3

rh310108 commented 2 years ago

I am having the same issue. I have tried reinstall openssl@1.1 and reinstall lastpass-cli.

rh310108 commented 2 years ago

I noticed that the openssl@1.1 is dependant on ca-certificates package. brew info openssl@1.1 openssl@1.1: stable 1.1.1m (bottled) [keg-only] Cryptography and SSL/TLS Toolkit https://openssl.org/ /usr/local/Cellar/openssl@1.1/1.1.1m (8,081 files, 18.5MB) Poured from bottle on 2021-12-20 at 09:22:24 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@1.1.rb License: OpenSSL ==> Dependencies Required: ca-certificates ✔ I went forward and reinstalled the ca-certificates package. The issue is resolved now

ttoennies commented 1 year ago

I'm getting this error as well. Tried the suggestions noted above but those packages are already installed. My account is setup for MFA; could that be the cause? Any suggestions are appreciated, thank you.

darmstrong8008 commented 1 year ago

This error is severly impacting my workflow. Any clues would be helpful.

EDIT: Please refer to #653 for workarounds if google searching this issue led you here as of August 29th 2023

bormosLP commented 10 months ago

1.3.6 release has the fix for this issue.