NatterNet icon indicating copy to clipboard operation
NatterNet copied to clipboard

RSA Private Key File is wrong error

Open streamerd opened this issue 7 months ago • 1 comments

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")
	}```

streamerd avatar Jul 04 '24 08:07 streamerd