external help file | Module Name | online version | schema |
---|---|---|---|
PSCredentialTools |
2.0.0 |
Converts a SecureString object into encrypted text with the public key of a PKI certificate.
ConvertFrom-PKISecureString [-SecureString] <SecureString> -CertificateFile <String> [<CommonParameters>]
ConvertFrom-PKISecureString [-SecureString] <SecureString> -Thumbprint <String> [-CertificateStore <String>]
[<CommonParameters>]
{{Fill in the Description}}
ConvertFrom-PKISecureString -SecureString $MySecretValue -Thumbprint '87BB70A19A7671D389F49AF4C9608B2F381FDD80' | Out-File ./encryptedText.txt
Encrypts a SecureString object and saves it to disk.
The SecureString object that will returned as an encrypted string.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The ThumbPrint of a certificate on the local computer that will be used to encrypt the string.
Type: String
Parameter Sets: Thumbprint
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Path to a .CER certificate public key file that will be used to encrypt the string.
Type: String
Parameter Sets: CertFile
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the certifcate store of the specified certificate thumbprint. Either LocalMachine or CurrentUser.
Type: String
Parameter Sets: Thumbprint
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 (http://go.microsoft.com/fwlink/?LinkID=113216).