Signs a public key with a specified private key.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public void SignPublicKey( long keyId, long signingKeyId, string signingPassword ) |
| Visual Basic |
|---|
Public Sub SignPublicKey ( _ keyId As Long, _ signingKeyId As Long, _ signingPassword As String _ ) |
| Visual C++ |
|---|
public: void SignPublicKey( long long keyId, long long signingKeyId, String^ signingPassword ) |
Parameters
- keyId
- Type: System..::..Int64
Key ID of the public key to be signed
- signingKeyId
- Type: System..::..Int64
Key ID of the private key used to sign the public key with
- signingPassword
- Type: System..::..String
Password of the private key
Remarks
Signing a key certifies that you know the owner of the keys.
When you import keys into your KeyStore and are sure that the trusted third party is really the organization/person they claim to be, you can sign his/her keys.
PGP command line(r) equivalent:
pgp --sign-key keyId --signer signingKeyId --sig-type exportable
GnuPG equivalent command:
gpg --local-user signingKeyId --sign-key keyId
When you import keys into your KeyStore and are sure that the trusted third party is really the organization/person they claim to be, you can sign his/her keys.
PGP command line(r) equivalent:
pgp --sign-key keyId --signer signingKeyId --sig-type exportable
GnuPG equivalent command:
gpg --local-user signingKeyId --sign-key keyId
Exceptions
| Exception | Condition |
|---|---|
| DidiSoft.Pgp.Exceptions..::..WrongPrivateKeyException | No private key has been found with such Key Id |
| DidiSoft.Pgp.Exceptions..::..WrongPublicKeyException | No public key has been found with such Key Id |
| DidiSoft.Pgp..::..PGPException | OpenPGP signing error |