Gethttpsforfree step three

Have openssl installed, can generate signatures for your code in step three. The web site wont accept the the code. "(stdin)="code"
using these commans:

set PRIV_KEY=path\account.key

echo “eyJub25jZSI6IkY4ZTZYNTl3WHJ3dlRkSkZCU0lsMkpubVRmRExrYThKYWlVNllza21Bc2sifQ.eyJyZXNvdXJjZSI6Im5ldy1yZWciLCJjb250YWN0IjpbIm1haWx0bzpqb3NlcGhAanZhcmdhMjkuY29tIl0sImFncmVlbWVudCI6Imh0dHBzOi8vbGV0c2VuY3J5cHQub3JnL2RvY3VtZW50cy9MRS1TQS12MS4yLU5vdmVtYmVyLTE1LTIwMTcucGRmIn0 .” | openssl dgst -sha256 -hex -sign %PRIV_KEY%>out1.sign

(echo | set /p dummyName=“eyJub25jZSI6IjdmRDUwR0ptQ3c1Ym8zMmRPV05yYXpTRjB5S3lGVlJqMVZsaHpsZDJxMnMifQ.eyJyZXNvdXJjZSI6Im5ldy1yZWciLCJjb250YWN0IjpbIm1haWx0bzpqb3NlcGhAanZhcmdhMjkuY29tIl0sImFncmVlbWVudCI6Imh0dHBzOi8vbGV0c2VuY3J5cHQub3JnL2RvY3VtZW50cy9MRS1TQS12MS4yLU5vdmVtYmVyLTE1LTIwMTcucGRmIn0”) | openssl dgst -sha256 -hex -sign %PRIV_KEY% -out out1.sig

Generates the code, puts it in a file for the the 4 requests. I then put the code in your website, and error, have to start over step 1.

I like your design and want to use the cert request I created.

Any ideas?

What was the exact error you got?

Also, I’ve put some of the “Help” section template below, could you answer them? Perhaps gethttpsforfree isn’t the most useful ACME client in your position, so we could evaluate that. Did you start using gethttpsforfree for a reason?

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

I got the SSL certificate from SSL for free. Installed all done.
Gethttpsforfree step three won’t accept the code. I found this web page
helpfull:

Same problem, step three won’t accept the code.

Hello @jwvarga46,

I don’t know why you are using this command, you don’t need it:

echo “eyJub25jZSI6IkY4ZTZYNTl3WHJ3dlRkSkZCU0lsMkpubVRmRExrYThKYWlVNllza21Bc2sifQ.eyJyZXNvdXJjZSI6Im5ldy1yZWciLCJjb250YWN0IjpbIm1haWx0bzpqb3NlcGhAanZhcmdhMjkuY29tIl0sImFncmVlbWVudCI6Imh0dHBzOi8vbGV0c2VuY3J5cHQub3JnL2RvY3VtZW50cy9MRS1TQS12MS4yLU5vdmVtYmVyLTE1LTIwMTcucGRmIn0 .” | openssl dgst -sha256 -hex -sign %PRIV_KEY%>out1.sign

1.- This echo command adds a new line so the sign result will not be the right one (I suppose this is the reason to use the second command which won’t add a new line).

2.- The quotes are not the right quotes, maybe it is because a copy/paste issue but you are using the wrong quotes
Yours are like this: “text”
The right ones should look like this: "text"

3.- You are adding a blank space and a dot to the string ???

4.- You are redirecting the output to the file out1.sign but in the second command (the almost right one) you are redirecting the output to file out1.sig which is a different file so I’m wondering if you are extracting the right output.

As I said, I’ve no idea why you are using this command.

Regarding this command:

(echo | set /p dummyName=“eyJub25jZSI6IjdmRDUwR0ptQ3c1Ym8zMmRPV05yYXpTRjB5S3lGVlJqMVZsaHpsZDJxMnMifQ.eyJyZXNvdXJjZSI6Im5ldy1yZWciLCJjb250YWN0IjpbIm1haWx0bzpqb3NlcGhAanZhcmdhMjkuY29tIl0sImFncmVlbWVudCI6Imh0dHBzOi8vbGV0c2VuY3J5cHQub3JnL2RvY3VtZW50cy9MRS1TQS12MS4yLU5vdmVtYmVyLTE1LTIwMTcucGRmIn0”) | openssl dgst -sha256 -hex -sign %PRIV_KEY% -out out1.sig

The only problem I can see is the quotes issue so the right commands should look like this:

set PRIV_KEY=path\account.key

(echo | set /p dummyName="eyJub25jZSI6IjdmRDUwR0ptQ3c1Ym8zMmRPV05yYXpTRjB5S3lGVlJqMVZsaHpsZDJxMnMifQ.eyJyZXNvdXJjZSI6Im5ldy1yZWciLCJjb250YWN0IjpbIm1haWx0bzpqb3NlcGhAanZhcmdhMjkuY29tIl0sImFncmVlbWVudCI6Imh0dHBzOi8vbGV0c2VuY3J5cHQub3JnL2RvY3VtZW50cy9MRS1TQS12MS4yLU5vdmVtYmVyLTE1LTIwMTcucGRmIn0") | openssl dgst -sha256 -hex -sign %PRIV_KEY% -out out1.sign

Obviously, the eyJub25... string will change.

An advise, use notepad or even better, notepad++ to copy/paste the strings to create the above commands.

Good luck,
sahsanu

1 Like

This is the code I used. Going to try it latter.

set PRIV_KEY=path\account.key (echo | set /p dummyName=“
eyJub25jZSI6IjdmRDUwR0ptQ3c1Ym8zMmRPV05yYXpTRjB5S3lGVlJqMVZsaHpsZDJxMnMifQ.
eyJyZXNvdXJjZSI6Im5ldy1yZWciLCJjb250YWN0IjpbIm1haWx0bzpqb3Nl
cGhAanZhcmdhMjkuY29tIl0sImFncmVlbWVudCI6Imh0dHBzOi8vbGV0c2Vu
Y3J5cHQub3JnL2RvY3VtZW50cy9MRS1TQS12MS4yLU5vdmVtYmVyLTE1LTIwMTcucGRmIn0”) |
openssl dgst -sha256 -hex -sign %PRIV_KEY% -out out1.sign

Ok, but that code has the wrong quotes too, your command in one line with the right quotes:

set PRIV_KEY=path\account.key (echo | set /p dummyName="eyJub25jZSI6IjdmRDUwR0ptQ3c1Ym8zMmRPV05yYXpTRjB5S3lGVlJqMVZsaHpsZDJxMnMifQ.eyJyZXNvdXJjZSI6Im5ldy1yZWciLCJjb250YWN0IjpbIm1haWx0bzpqb3NlcGhAanZhcmdhMjkuY29tIl0sImFncmVlbWVudCI6Imh0dHBzOi8vbGV0c2VuY3J5cHQub3JnL2RvY3VtZW50cy9MRS1TQS12MS4yLU5vdmVtYmVyLTE1LTIwMTcucGRmIn0") | openssl dgst -sha256 -hex -sign %PRIV_KEY% -out out1.sign

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.