Creates a revocation certificate in ASCII armored string format for a given OpenPGP key.

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]

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

Syntax

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

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
description
Type: System..::..String
Revocation description

Return Value

revocation certificate in ASCII armored string format

See Also