Citrix StoreFront SDK PowerShell Modules

New-STFSelfSignedCertificate

Create a new self signed certificate

Syntax

New-STFSelfSignedCertificate [-FriendlyName] <String> [[-X500Subject] <String>] [[-Expires] <DateTime>] [[-KeyLength] <UInt32>] [[-SigningAlgorithm] <String>] [[-CSPType] <UInt32>] [<CommonParameters>]
<!--NeedCopy-->

Detailed Description

Creates a new exportable self signed certificate for encryption and signing operations.

Parameters

Name Description Required? Pipeline Input Default Value
FriendlyName The friendly identifier for the certificate true false  
X500Subject The certificate subject. If omitted defaults to match the friendly name false false  
Expires Certificate expiration. If omitted defaults to 10 years false false  
KeyLength Certificate key length. If omitted defaults to 2048 false false  
SigningAlgorithm Certificate signing algorithm. If omitted defaults to sha256RSA false false  
CSPType Certificate CSP Type. If omitted defaults to sha256RSA false false  

Input Type

System.String

Parameter FriendlyName: The .NET System.String reference type

System.String

Parameter X500Subject: The .NET System.String reference type

System.DateTime

Parameter Expires: The .NET System.DateTime value type

System.UInt32

Parameter KeyLength: The .NET System.UInt32 value type

System.String

Parameter SigningAlgorithm: The .NET System.String reference type

System.UInt32

Parameter CSPType: The .NET System.UInt32 value type

Return Values

X509Certificate2

The .NET System.Security.Cryptography.X509Certificates.X509Certificate2 reference type

Examples

EXAMPLE 1 Create a new self signed certificate

New-STFSelfSignedCertificate -FriendlyName "SPACertificate"
<!--NeedCopy-->

REMARKS

Creates a new self signed certificate with the name “SPACertificate” and subject “CN=SPACertificate”

OUTPUT

Thumbprint                                Subject                                                                      
                                                  
----------                                -------                                                                      
                                                  
054C1A04D62B64CA32FE44CDB5F7AB3CDA005B4A  CN=SPACertificate
<!--NeedCopy-->

EXAMPLE 2 Create a new self signed certificate

New-STFSelfSignedCertificate -FriendlyName "ServiceCertificate" -X500Subject "CN=StoreFrontService"
<!--NeedCopy-->

REMARKS

Creates a new self signed certificate with the name “ServiceCertificate” and subject “CN=StoreFrontService”

OUTPUT

Thumbprint                                Subject                                                                      
                                                  
----------                                -------                                                                      
                                                  
054C1A04D62B64CA32FE44CDB5F7AB3CDA005B4A  CN=StoreFrontService
<!--NeedCopy-->
New-STFSelfSignedCertificate