< Back

Set-PAServer

Sat Jan 18, 2020 7:33 pm

NAME Set-PAServer



SYNOPSIS

Set the current ACME server.





SYNTAX

Set-PAServer [-DirectoryUrl] <String> [-SkipCertificateCheck] [<CommonParameters>]





DESCRIPTION

Use this function to switch between ACME servers. Switching also refreshes the cached data for the new server.





PARAMETERS

-DirectoryUrl <String>

Either the URL to an ACME server's "directory" endpoint or one of the supported short names. Currently

supported short names include LE_PROD (LetsEncrypt Production v2) and LE_STAGE (LetsEncrypt Staging v2).



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-SkipCertificateCheck [<SwitchParameter>]

If specified, disable certificate validation while using this server. This should not be necessary except in

development environments where you are connecting to a self-hosted ACME server.



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-PAServer LE_PROD



Switch to the LetsEncrypt production server using the short name.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-PAServer -DirectoryUrl https://myacme.example.com/directory



Switch to the specified ACME server using the directory URL.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>(Get-PAServer -List)[0] | Set-PAServer



Switch to the first ACME server returned by "Get-PAServer -List"











RELATED LINKS

Project: https://github.com/rmbolger/Posh-ACME

Get-PAServer