Creates a key revocation certificate for a given OpenPGP key file and stores it in a file.

Key revocation certificates are especially useful if we have forgotten the pass phrase to our private key and we need some way to "disable" or revoke that key.

Equivalent GPG command:
gpg --gen-revoke [UserId] --output [outputFileName]

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

Syntax

C#
public void CreateRevocationCertificateInFile(
	string privateKeyFile,
	string privateKeyPassword,
	byte reason,
	string description,
	string outputFileName
)
Visual Basic
Public Sub CreateRevocationCertificateInFile ( _
	privateKeyFile As String, _
	privateKeyPassword As String, _
	reason As Byte, _
	description As String, _
	outputFileName As String _
)
Visual C++
public:
void CreateRevocationCertificateInFile(
	String^ privateKeyFile, 
	String^ privateKeyPassword, 
	unsigned char reason, 
	String^ description, 
	String^ outputFileName
)

Parameters

privateKeyFile
Type: System..::..String
File name containing the Private key (absolute or relative path)
privateKeyPassword
Type: System..::..String
Password of the private key
reason
Type: System..::..Byte
Revocation reason code (use the REASON_ constants from this class)
description
Type: System..::..String
Revocation description
outputFileName
Type: System..::..String
Output file name where the revocation certificate will be stored (absolute or relative path)

See Also