Comments (9)
I compared it to a bash console and looked what's going on. Following solution is available for Windows console (e.g. batch script):
set PRIV_KEY=account.key
(echo | set /p dummyName="ey...") | openssl dgst -sha256 -hex -sign %PRIV_KEY% -out out.sign
Problem is the bash echo -n (echo without newline) which has to simulated in Windows environment. The Windows solution echo | set /p dummyName="ey..." will print the string without any newline or space character at the end and additionally not raise any errorlevel.
The resulting hex code in file out.sign can be used for step 3 and works.
from gethttpsforfree.
Me too.
from gethttpsforfree.
same here
from gethttpsforfree.
Same error 400 here. Tried with hex codes in format
"(stdin)= f2c..."
and (stdin)= f2c...
Actions are:
set PRIV_KEY=account.key
echo "ey..." | openssl dgst -sha256 -hex -sign %PRIV_KEY%>out.sign
The signature in out.sign contains the hex code which I enter in step 3.The key is the private key of my account. The standard input (in echo command) is taken from website in step3.
The environment is windows 7, OpenSSL 1.0.2f.
Post request includes JWK token, payload, protected and signature elements. Any hints on this?
from gethttpsforfree.
Just adding my voice. Tried to get the entire code in one line, etc, but still fails every time in Windows 7.
from gethttpsforfree.
I ended up using https://www.startssl.com/Account to validate my crt file. The Website is a little slow, but in the end i was able to get it working. Best of Luck
from gethttpsforfree.
Mac OSX here w/ ubuntu in the back. Same problem.
from gethttpsforfree.
Like @martin-s said, this error is likely because your echo
is adding a newline in the signature. Be sure to either use echo -n
or printf
when piping the body into openssl.
from gethttpsforfree.
@Marti-S Thank you so much!
from gethttpsforfree.
Related Issues (20)
- Wildcard support HOT 1
- Locally hosted semi-automated operation for externally hosted cert renewals HOT 2
- Node.js package and longer periods of time ? HOT 2
- hex2b64 returning null - Step 3 Accept terms not working. HOT 3
- Welcome to use automatic RSA signature JS tool, 3KB size🎉😊🎉 HOT 3
- Unauthenticated resource GETs on ACME v2 HOT 6
- I can't register an ecc account.key HOT 1
- Step 4: Verify Owner Keeps Failing HOT 2
- Getting a urn:ietf:params:acme:error:malformed error even though pub-key was created from priv key HOT 1
- -bash: syntax error near unexpected token `('
- Error in Step 3: Sign API Requests
- Feature Request: Preferred chain HOT 1
- Can't find files to serve for challenges HOT 1
- Error in Step 3: Account registration failed. Please start back at Step 1. HOT 14
- Step 5, Signed Certificate Chain 3 certs HOT 3
- ISRG Root X1 still verified by DST Root CA X3 HOT 2
- If you need to manually obtain the certificate, here is the easy-to-use web page ACME client on the browser, supports RSA and ECC, welcome to use🎉 HOT 1
- Finalize request error HOT 1
- Unable to access https://gethttpsforfree.com HOT 2
- Site offline HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gethttpsforfree.