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

Equivalent GPG command:
gpg --import [certificateFileName]

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

Syntax

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

Parameters

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

Exceptions

ExceptionCondition
PgpExceptionif the revocation certificate is not applicable for this key ring
System.IO..::..IOExceptionif there is a problem reading the certificate file

See Also