Revokes a key or subkey located in an OpenPGP KeyStore
using a revocation certificate supplied as text.
Equivalent GPG command:
gpg --import [certificateFile]
Namespace: DidiSoft.PgpEquivalent GPG command:
gpg --import [certificateFile]
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public void RevokeKeyWithRevocationCertificateText( KeyStore keyStore, string certificateText ) |
| Visual Basic |
|---|
Public Sub RevokeKeyWithRevocationCertificateText ( _ keyStore As KeyStore, _ certificateText As String _ ) |
| Visual C++ |
|---|
public: void RevokeKeyWithRevocationCertificateText( KeyStore^ keyStore, String^ certificateText ) |
Parameters
- keyStore
- Type: DidiSoft.Pgp..::..KeyStore
KeyStore instance containing the target OpenPGP key
- certificateText
- Type: System..::..String
revocation certificate in ASCII armored string format
Exceptions
| Exception | Condition |
|---|---|
| DidiSoft.Pgp.Exceptions..::..WrongPublicKeyException | if there is no public key with the id stored in the revocation certificate |