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

RSA Private Key File is wrong error #32

Open
streamerd opened this issue Jul 4, 2024 · 1 comment
Open

RSA Private Key File is wrong error #32

streamerd opened this issue Jul 4, 2024 · 1 comment

Comments

@streamerd
Copy link

streamerd commented Jul 4, 2024

Hello,

When I run the app, I was getting:

go run cmd/app/main.go

2024/07/04 11:36:50 No RSA Certificate file found

cd _hack
chmod +X rsa.sh
sudo ./rsa.sh

go run cmd/app/main.go
2024/07/04 11:42:18 RSA Private Key File is wrong

Checked the error msg in code and found that here.

Then I've logged the rsaPrivKey.Type and seen that type was in fact "RSA PRIVATE KEY", instead of "PRIVATE KEY".

Not sure if that's just happening on my side, but this was how I got the app up and running. You may want to investigate this

	log.Print("rsaPrivKey.Type: ", rsaPrivKey.Type)

	if rsaPrivKey.Type != "RSA PRIVATE KEY" {
		log.Fatal("RSA Private Key File is wrong")
	}```
@iammuho
Copy link
Owner

iammuho commented Aug 2, 2024

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

2 participants