Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Peer certificate cannot be authenticated with given CA certificates. #663

Closed
yt33 opened this issue Sep 28, 2023 · 1 comment
Closed

Comments

@yt33
Copy link

yt33 commented Sep 28, 2023

I was github.com/ansd/lastpass-go v0.0.1 and had this error when running

cmdString := fmt.Sprintf("echo '%s' | LPASS_DISABLE_PINENTRY=1 lpass login %s", password, username)
cmd := exec.Command("sh", "-c", cmdString)

var out bytes.Buffer
var errOut bytes.Buffer
cmd.Stdout = &out
cmd.Stderr = &errOut
err := cmd.Run()

if err != nil {
  return "", fmt.Error("%v " + errOut.String(), err)
}

After upgrading to the latest v0.4.0, still had this error.

I'm wondering if it's like #88
Thanks

@yt33
Copy link
Author

yt33 commented Sep 29, 2023

Can run the command on my lastpass-cli (version LastPass CLI v1.3.6.1.g29953fd) with the same credential fine

@yt33 yt33 closed this as completed Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant