ebekker / ACMESharp

An ACME client library and PowerShell client for the .NET platform (Let's Encrypt)
https://pkisharp.github.io/ACMESharp-docs/
1.21k stars 184 forks source link

Method 2 Quick Start issue #326

Open mikemadeja opened 6 years ago

mikemadeja commented 6 years ago

Following the guide, I don't get the details that the wiki provides.

Complete-ACMEChallenge stocknfo -ChallengeType http-01 -Handler manual

Renders below.

image

Based on the guide, I should see more? Guide - https://github.com/ebekker/ACMESharp/wiki/Quick-Start#method-2---handling-the-http-challenge-manually Complete-ACMEChallenge dns1 -ChallengeType http-01 -Handler manual == Manual Challenge Handler - HTTP ==

Jaybear commented 6 years ago

Hello Mike, first to say that I'm not the most experienced expert for ACME-challenge ;)

But one hint I can give: Your choosen alias for your domain/subdomain you are defining with the beginning New-ACMEIdentifier - order (not shown on your screenshot) may be far too simple.:

Every here used alias should be everytime unique as far as I know.

Try this scheme: dns_stockinfo_201801121001 (%named-part-of-chars%%date%_%unique-serial-number%)

... and increment the last number-part for EVERY domain/subdomain you want to "challenge".

It's because your declared alias at the ACME-server does remain there for a time which is not manageable by yourself.

Kind regards, Jens

bendtherules commented 6 years ago

We faced the same problem and finally got the solution (Updated the wiki right now):

Short answer: You can always run Update-ACMEIdentifier to get all the details. Or see https://github.com/ebekker/ACMESharp/issues/312#issuecomment-340028165

Long answer: Note: If you do not get the challenge details like file path and content in the output, you can always run step 6(b) i.e. Update-ACMEIdentifier to get the details:

PS> (Update-ACMEIdentifier dns1 -ChallengeType dns-01).Challenges | Where-Object {$_.Type -eq "http-01"}
...
Status         : pending
...
romanov commented 6 years ago

I can't confirm domain with http-01. Always in pending state. I've checked everything: text/plain and a path