ebekker / ACMESharp

An ACME client library and PowerShell client for the .NET platform (Let's Encrypt)
https://pkisharp.github.io/ACMESharp-docs/
1.21k stars 184 forks source link

Upgrade powershell code to ACMEv2 protocol #374

Closed haviay closed 4 years ago

haviay commented 4 years ago

Hi, i use ACMESharp via power shell to create multiple domains per certificates How can i rewrite this code below?

import-module ACMESharp

$email = "mailto:admin@admin.com" $iissitename = "websitename" $certname = "aaa15$(get-date -format yyyy-MM-dd--HH-mm)" $pfxfile = "C:\Certs\03\pfx\$certname.pfx"

$initializevault = $FALSE $createregistration = $FALSE $createalias = $TRUE

$domains = @(<...list of domains...>
)

$aliases = @()

if($initializevault) { Initialize-ACMEVault }

Get-ACMEVault

ebekker commented 4 years ago

If you wish to migrate your PWSH script(s) to ACMEv2 I recommend migrating to the excellent ACME-PS library by @glatzert.