Skip to content

Commit

Permalink
bug fix: exception when calling acme.exe without any arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
oocx committed Dec 4, 2015
1 parent 9421142 commit 887a735
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified .vs/ACME.net/v14/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-rc1-final",
"runtime": "coreclr",
"runtime": "clr",
"architecture": "x64"
}
}
4 changes: 2 additions & 2 deletions src/Oocx.ACME.Console/AcmeProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private async Task<bool> AuthorizeForDomain(string domain)

private async Task RegisterWithServer()
{
var registration = await client.RegisterAsync(options.AcceptTermsOfService ? options.TermsOfServiceUri : null, options.Contact);
var registration = await client.RegisterAsync(options.AcceptTermsOfService ? options.TermsOfServiceUri : null, new[] {options.Contact});
Info($"Terms of service: {registration.Agreement}");
Verbose($"Created at: {registration.CreatedAt}");
Verbose($"Id: {registration.Id}");
Expand All @@ -179,7 +179,7 @@ private async Task RegisterWithServer()
Error($"Cannot accept terms of service. The terms of service uri is '{registration.Agreement}', expected it to be '{options.TermsOfServiceUri}'.");
return;
}
await client.UpdateRegistrationAsync(registration.Location, registration.Agreement, options.Contact);
await client.UpdateRegistrationAsync(registration.Location, registration.Agreement, new[] {options.Contact});
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Oocx.ACME.Console/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ public class Options
public string IISBinidng { get; set; }

[Option('m', "contact", HelpText = "The contact information for the registration request. Example: mailto:[email protected]")]
public string[] Contact { get; set; }
public string Contact { get; set; }
}
}

0 comments on commit 887a735

Please sign in to comment.