Revokes a key or subkey from an OpenPGP key ring file (*.asc, *.pkr)
using a revocation certificate supplied as text.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public void RevokeKeyWithRevocationCertificateText(
string publicKeyFileName,
string certificateText
) |
| Visual Basic |
|---|
Public Sub RevokeKeyWithRevocationCertificateText ( _
publicKeyFileName As String, _
certificateText As String _
) |
| Visual C++ |
|---|
public:
void RevokeKeyWithRevocationCertificateText(
String^ publicKeyFileName,
String^ certificateText
) |
Parameters
- publicKeyFileName
- Type: System..::..String
file name containing the target OpenPGP key (absolute or relative path)
- certificateText
- Type: System..::..String
revocation certificate as ASCII armored string
Exceptions
| Exception | Condition |
|---|
| PgpException | if the revocation certificate is not applicable for this key ring |
| System.IO..::..IOException | if there is a problem reading the public key file |
See Also