Tests whether a HTTPS certificate is suitable for SystoLOCK server.
Test-SystoLockCertificate [[-Thumbprint] <String>] [-Verbose] [<CommonParameters>]
Test-SystoLockCertificate [[-Certificate] <X509Certificate2>] [-Verbose] [<CommonParameters>]
The Test-SystoLockCertificate
cmdlet tests whether specific HTTPS certificate is present in the certificate store and if it is suitable for SystoLOCK server.
An HTTPS certificate is suitable to use if the following conditions are met:
PS C:\> Test-SystoLockCertificate -Thumbprint B1157B9D07A7253E9655AFD99CB2762D533C27C0
Tests whether specified certificate is present in the computer store and valid.
PS C:\> Test-SystoLockCertificate -Certificate $certificate
Tests whether specified certificate object is present in the computer store and valid.
PS C:\> Test-SystoLockCertificate -Verbose
Tests all the certificates from the computer store for validity and provides verbose validation details about each of them.
Specifies the certificate object to test.
Type: X509Certificate2
Parameter Sets: Certificate
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
.
Specifies certificate thumbprint.
Type: String
Parameter Sets: Thumbprint
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Enables verbose validation. (False by default)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Thumbprint string.
Certificate object.
Returns $true
if specified certificate is in the certificate store and valid; otherwise $false
.