ohadschn / letsencrypt-webapp-renewer

[PLEASE USE FREE MS MANAGED CERTS INSTEAD] Simple WebJob-ready console application for renewing Azure Web App SSL certificates
https://www.ohadsoft.com/
Apache License 2.0
282 stars 51 forks source link

Crashes without error message in command line #47

Closed berhir closed 6 years ago

berhir commented 6 years ago

We used version v0.6.20-prerelease-fix before and everything worked fine. No I tried to use the latest version (0.8.5.1) with the same parameter values (+ the new flags) but it crashes (I guess) without an error message.

This is the console output:

AzureLetsEncryptRenewer.exe Information: 0 : Web App SSL renewal CLI started, parameters: -s, xxx, -t, xxx.onmicrosoft.com, -r, Websites, -w, xxx, -o, xxx.me;www.xxx.me;xxx.xxx.me, -e, it@xxx.com, -c, xxx, -l, xxx
AzureLetsEncryptRenewer.exe Information: 0 : Generating SSL certificate with parameters: SubscriptionId: xxx, TenantId: xxx.onmicrosoft.com, ResourceGroup: Websites, WebApp: xxx, Hosts: System.String[], Email: it@xxx.com, ClientId: xxx, ClientSecret: <SCRUBBED>, ServicePlanResourceGroup: , SiteSlotName: , UseIpBasedSsl: False, RsaKeyLength: 2048, AcmeBaseUri: , RenewXNumberOfDaysBeforeExpiration: -1, AuthenticationUri: , AzureTokenAudience: , AzureManagementEndpoint: , AzureDefaultWebsiteDomainName: 
AzureLetsEncryptRenewer.exe Information: 0 : Generating secure PFX password for 'xxx'...
AzureLetsEncryptRenewer.exe Information: 0 : Adding SSL cert for 'xxx'...
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:51:  - AuthenticationContext: ADAL .NET with assembly version '2.28.3.860', file version '2.28.31117.1411' and informational version '78bd21073cfd91768d97894ace1ba90c5b904eec' is running...
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:51: 1a9ddb93-d7ba-4837-b72d-8a6bc75713dc - AcquireTokenHandlerBase: === Token Acquisition started:
    Authority: https://login.windows.net/xxx.onmicrosoft.com/
    Resource: https://management.core.windows.net/
    ClientId: ecfc594a-6596-46c8-ae98-3b1f3a01fcc8
    CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (0 items)
    Authentication Target: Client

AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:51: 1a9ddb93-d7ba-4837-b72d-8a6bc75713dc - TokenCache: Looking up cache for a token...
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:51: 1a9ddb93-d7ba-4837-b72d-8a6bc75713dc - TokenCache: No matching token was found in the cache
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:52: 1a9ddb93-d7ba-4837-b72d-8a6bc75713dc - TokenCache: Storing token in the cache...
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:52: 1a9ddb93-d7ba-4837-b72d-8a6bc75713dc - TokenCache: An item was stored in the cache
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:52: 1a9ddb93-d7ba-4837-b72d-8a6bc75713dc - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
    Access Token Hash: xxx
    Refresh Token Hash: [No Refresh Token]
    Expiration Time: 04/13/2018 14:13:51 +00:00
    User Hash: null

AzureLetsEncryptRenewer.exe Information: 0 : Staring add certificate
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:54: 26322595-f289-424d-a4e2-4bb0a347b4e4 - AcquireTokenHandlerBase: === Token Acquisition started:
    Authority: https://login.windows.net/xxx.onmicrosoft.com/
    Resource: https://management.core.windows.net/
    ClientId: xxx
    CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (1 items)
    Authentication Target: Client

AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:54: 26322595-f289-424d-a4e2-4bb0a347b4e4 - TokenCache: Looking up cache for a token...
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:54: 26322595-f289-424d-a4e2-4bb0a347b4e4 - TokenCache: An item matching the requested resource was found in the cache
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:54: 26322595-f289-424d-a4e2-4bb0a347b4e4 - TokenCache: 59.9543393283333 minutes left until token in cache expires
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:54: 26322595-f289-424d-a4e2-4bb0a347b4e4 - TokenCache: A matching item (access token or refresh token or both) was found in the cache
AzureLetsEncryptRenewer.exe Information: 0 : 04/13/2018 13:13:54: 26322595-f289-424d-a4e2-4bb0a347b4e4 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
    Access Token Hash: xxx
    Refresh Token Hash: [No Refresh Token]
    Expiration Time: 04/13/2018 14:13:51 +00:00
    User Hash: null

AzureLetsEncryptRenewer.exe Information: 0 : Add certificate for acmeConfig hostname xxx.me, www.xxx.me, xxx.xxx.me
AzureLetsEncryptRenewer.exe Information: 0 : RequestAndInstallInternal
AzureLetsEncryptRenewer.exe Information: 0 : Loading Signer from C:\Users\xxx\Downloads\letsencrypt\OhadSoft.AzureLetsEncrypt.Renewal.WebJob-0.8.5.1\App_Data\siteextensions\letsencrypt\config\httpsacme-v01.api.letsencrypt.org\Signer
AzureLetsEncryptRenewer.exe Information: 0 : 
Getting AcmeServerDirectory
AzureLetsEncryptRenewer.exe Information: 0 : Loading Registration from C:\Users\xxx\Downloads\letsencrypt\OhadSoft.AzureLetsEncrypt.Renewal.WebJob-0.8.5.1\App_Data\siteextensions\letsencrypt\config\httpsacme-v01.api.letsencrypt.org\Registration

Authorizing Identifier xxx.me Using Challenge Type http-01
AzureLetsEncryptRenewer.exe Information: 0 : Authorizing Identifier xxx.me Using Challenge Type http-01

I tried it with different websites but its always the same problem. For now I use the old version again but I hope you can help me to get the new version running.

ohadschn commented 6 years ago

Could you compile from source? I think I fixed this here but didn't get the chance to publish a new version: https://github.com/ohadschn/letsencrypt-webapp-renewer/commit/27d2ce9f8a4de8e814486196167377fdc47fdb26

berhir commented 6 years ago

Yes, now it works! Thank you!