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

Proxy parameter not used for Update-ACMECertificate #342

Open
XSBen opened this issue Apr 25, 2018 · 0 comments
Open

Proxy parameter not used for Update-ACMECertificate #342

XSBen opened this issue Apr 25, 2018 · 0 comments

Comments

@XSBen
Copy link

XSBen commented Apr 25, 2018

When I use proxy all CmdLet work correctly except Update-ACMECertificate:

Update-ACMECertificate : Impossible de se connecter au serveur distant
Au caractère C:\scripts\Cert\Cert_Common.ps1:117 : 5
+     Update-ACMECertificate -VaultProfile cfb-vault $certGroup
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Update-ACMECertificate], WebException
    + FullyQualifiedErrorId : System.Net.WebException,ACMESharp.POSH.UpdateCertificate

In source: for Update-ACMECertificate CmdLet:

using (var web = new WebClient())
{
    if (v.Proxy != null)
        web.Proxy = v.Proxy.GetWebProxy();

    var uri = new Uri(new Uri(v.BaseUri), upLink.Uri);
    web.DownloadFile(uri, tmp);
}

For all other CmdLet:

using (var c = ClientHelper.GetClient(v, ri))
{
    c.Init();
    c.GetDirectory(true);

    var challenge = c.SubmitChallengeAnswer(authzState, ChallengeType, UseBaseUri);
    ii.Challenges[ChallengeType] = challenge;
}
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

1 participant