Test-FasCrypto
SYNOPSIS
Performs a test signature operation
SYNTAX
Test-FasCrypto [-HashingAlgorithm <String>] [-ReuseCachedTestKey <Boolean>] [-Address <String>]
[-UserName <String>] [-Password <String>] [<CommonParameters>]
<!--NeedCopy-->
DESCRIPTION
This command signs a piece of data using a test private key. The signature created is discarded.
Use this test to verify cyptography is working.
If ReuseCachedTestKey is false, a new key-pair is created for the signing operation.
If ReuseCachedTestKey is true, the test re-uses a cached key-pair for the signing operation in order to avoid the overhead of generating a new key-pair.
EXAMPLES
EXAMPLE 1
PS C:\>
C:\PS> $CitrixFasAddress=(Get-FasServer)[0].Address
C:\PS> Test-FasCrypto
<!--NeedCopy-->
Description
This code performs a signature using a test private key
PARAMETERS
-HashingAlgorithm
Specify the hashing algorithm to use when performing the signature.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: SHA256
Accept pipeline input: False
Accept wildcard characters: False
<!--NeedCopy-->
-ReuseCachedTestKey
Specify whether to re-use a test key-pair in the signing operation.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: $False
Accept pipeline input: False
Accept wildcard characters: False
<!--NeedCopy-->
-Address
Address of FAS Server (or $NULL to use $CitrixFasAddress)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: $CitrixFasAddress
Accept pipeline input: False
Accept wildcard characters: False
<!--NeedCopy-->
-UserName
User name to use for authentication to FAS server ($NULL for current user account)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: $NULL
Accept pipeline input: False
Accept wildcard characters: False
<!--NeedCopy-->
-Password
Password for authentication to FAS server ($NULL for current user account)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: $NULL
Accept pipeline input: False
Accept wildcard characters: False
<!--NeedCopy-->
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Variable, based on property name.
This cmdlet does accept input from the pipeline but only by property name.
OUTPUTS
DiagnosticTestResult
This cmdlet returns a DiagnosticTestResult object