Skip to content
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

Doesn't work for punycode domains #4

Open
alvipeo opened this issue Jun 15, 2018 · 1 comment
Open

Doesn't work for punycode domains #4

alvipeo opened this issue Jun 15, 2018 · 1 comment

Comments

@alvipeo
Copy link

alvipeo commented Jun 15, 2018

I get this warning first:

Could not set custom hostname 'xn--80aakbcae3au6am7h4b.xn--p1ai'. Details: Microsoft.Rest.Azure.CloudException: The
name xn--80aakbcae3au6am7h4b.xn--p1ai is not valid.

and then

Exception calling "UploadFile" with "2" argument(s): "System error."
At F:\path\Powershell\LetsEncrypt\WebAppFiles.ps1:28 char:35

  • $webclient.UploadFile($uri, $(Get-ChildItem $File).FullName)
    
  •                               ~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : WebException

Get-ChildItem : Cannot find path 'F:\path\Powershell\LetsEncrypt\web.config' because it does not exist.
At F:\path\Powershell\LetsEncrypt\WebAppFiles.ps1:28 char:35

  • $webclient.UploadFile($uri, $(Get-ChildItem $File).FullName)
    
  •                               ~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (F:\path\web.config:String) [Get-ChildItem], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

Exception calling "UploadFile" with "2" argument(s): "An exception occurred during a WebClient request."
At F:\path\Powershell\LetsEncrypt\WebAppFiles.ps1:28 char:35

  • $webclient.UploadFile($uri, $(Get-ChildItem $File).FullName)
    
  •                               ~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : WebException

and the following at the end:

Failed to validate challenge
At F:\path\Powershell\LetsEncrypt\CreateLetsEncryptWebApp.ps1:158 char:5

  • throw 'Failed to validate challenge'
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Failed to validate challenge:String) [], RuntimeException
    • FullyQualifiedErrorId : Failed to validate challenge
@hansenms
Copy link
Owner

Wasn't really tested with that. If you want to fix it, feel free to do so. Happy to accept a pull request, but it is not something I plan on working on. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants