diafygi / gethttpsforfree

Source code for https://gethttpsforfree.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Step 3] 'PRIV_KEY' is not recognized as an internal or external command, operable program or batch file.

annvnzndrvn opened this issue · comments

commented

Hi,

I'm getting the error message outlined in the subject of this issue when running the following command:

λ PRIV_KEY=./account.key; echo -n "key-with-loads-of-characters" | openssl dgst -sha256 -hex -sign $PRIV_KEY

Why is it returning this error message? I also tried skipping the PRIV_KEY part at the beginning as suggested in other issue but no luck. Do I need to install some additional stuff other than openssl? I also tried setting up env var called PRIV_KEY just in case because I'm not sure what's going on because I don't fully understand the whole background behind this process but that didn't fix it either.

I'd appreciate any help.

Thanks,
Anne

EDIT: I tried changing that to:

account.key; echo -n "key-with-loads-of-characters" | openssl dgst -sha256 -hex -sign account.key

and it did the trick for all three textboxes, however now it returns the following when validating:

Error: Account registration failed. Please start back at Step 1. { "type": "urn:acme:error:malformed", "detail": "JWS verification error", "status": 400 }