Revokes a key or subkey from an OpenPGP key ring file (*.asc, *.pkr) using a revocation certificate file.

Namespace: DidiSoft.Pgp
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547

Syntax

C#
public void RevokeKeyWithRevocationCertificateFile(
	string publicKeyFileName,
	string certificateFileName
)
Visual Basic
Public Sub RevokeKeyWithRevocationCertificateFile ( _
	publicKeyFileName As String, _
	certificateFileName As String _
)
Visual C++
public:
void RevokeKeyWithRevocationCertificateFile(
	String^ publicKeyFileName, 
	String^ certificateFileName
)

Parameters

publicKeyFileName
Type: System..::..String
file name containing the target OpenPGP key (absolute or relative path)
certificateFileName
Type: System..::..String
revocation certificate file name (absolute or relative path)

Exceptions

ExceptionCondition
DidiSoft.Pgp.Exceptions..::..WrongPublicKeyExceptionif there is no public key with the id stored in the revocation certificate
System.IO..::..IOExceptionif there is a problem reading the public key file or the certificate file

See Also