Set-WFCertificate
Updated: August 30, 2012
Set-WFCertificate
Syntax
Parameter Set: AutoCert Set-WFCertificate [-WFFarmDBConnectionString <String> ] [ <CommonParameters>] Parameter Set: BothSslAndEncryption Set-WFCertificate -EncryptionCertificateThumbprint <String> -SslCertificateThumbprint <String> [-WFFarmDBConnectionString <String> ] [ <CommonParameters>] Parameter Set: OnlyEncryption Set-WFCertificate -EncryptionCertificateThumbprint <String> [-WFFarmDBConnectionString <String> ] [ <CommonParameters>] Parameter Set: OnlySsl Set-WFCertificate -SslCertificateThumbprint <String> [-WFFarmDBConnectionString <String> ] [ <CommonParameters>]
Detailed Description
Run Set-WFCertificate to change the SslCertificateThumbprint and the EncryptionCertificate. After running this cmdlet, run Update-WFHost on every host to bring the new certificate to the host.
Parameters
-EncryptionCertificateThumbprint<String>
This certificate is used for securing the SQL connection strings. If not provided, it will take the value of the SslCertificate. Represents the encryption certificate.
Aliases | none |
Required? | true |
Position? | named |
Default Value | none |
Accept Pipeline Input? | false |
Accept Wildcard Characters? | false |
-SslCertificateThumbprint<String>
Represents the certificate that is used for securing the service communication. Do not provide this if you are providing CertAutogenerationKey for auto-generation of certificates.
Aliases | none |
Required? | true |
Position? | named |
Default Value | none |
Accept Pipeline Input? | false |
Accept Wildcard Characters? | false |
-WFFarmDBConnectionString<String>
Represents a connection string of the configuration database.
Aliases | none |
Required? | false |
Position? | named |
Default Value | none |
Accept Pipeline Input? | false |
Accept Wildcard Characters? | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example
Set the SSL and EncryptionCertificate certificates.
PS C:\> Set-WFCertificate –SslCertificateThumbprint “wfsslcert.pfx” –EncryptionCertificateThumbprint “encryptioncert.pfx”