-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get challenge info automaticaly #97
Comments
I created a script to create/renew certificates in one command. You can find it in issue 76 You can either use it or compare what you are doing with what it does to see how to make progress. |
Yeah, but the problem of your script is that work only with IIS (local certificate), I'm running apache on Windows (What a strange configuration !) Maybe I am wrong, say me in this case. But in any case, I will inspect one more time your script :) |
You are right, it will not work for you. However, it will show you how to resolve your problem because it successfully completes the certificate generation step and saves the certificate to a file. It uses the ExportPKcs12 option but you can use the option to export a .pem file instead. |
Just today I figured this out. Here is the code I used:
Then you can get the File Contents and Token with the following:
Remember to specifiy the appropriate challenge type in the where statement. Wish I had fully read the issue 76 mentioned above as it would have saved me a lot of time figuring this out. |
Hopefully, everyone's questions have been answered so I'm closing. If not, please reopen or continue the discussion. |
Hi, I'm not a master with powershell, I want to build a ps script for auto-renew the certificate.
There is only one thing that block me: get the fileContent from the Complete-ACMEChallenge output.
See this:
Note: All information has been replaced by
#
I though when you do something like that
$outputChallenge = Complete-ACMEChallenge myAlias -ChallengeType http-01 -Handler manual
You get all the output into the $ouputChallenge variable.Now the variable contains only a part of the output... which is:
How to get the
* File Content:
content ? I'm not able to catch him.Thank for any help, and, of course, if there isn't the place for asking this, sorry :/
Alaanor.
The text was updated successfully, but these errors were encountered: