Signs a public key with a private key.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public virtual void SignPublicKey( string keyUserId, string signingKeyUserId, string signingKeyPassword ) |
| Visual Basic |
|---|
Public Overridable Sub SignPublicKey ( _ keyUserId As String, _ signingKeyUserId As String, _ signingKeyPassword As String _ ) |
| Visual C++ |
|---|
public: virtual void SignPublicKey( String^ keyUserId, String^ signingKeyUserId, String^ signingKeyPassword ) |
Parameters
- keyUserId
- Type: System..::..String
User Id of the public key to be signed
- signingKeyUserId
- Type: System..::..String
User Id of the own private key to be used for signing
- signingKeyPassword
- Type: System..::..String
Password of the own 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 keyUserId --signer signingKeyUserId --sig-type exportable
GnuPG equivalent command:
gpg --local-user signingKeyUserId --sign-key keyUserId
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 keyUserId --signer signingKeyUserId --sig-type exportable
GnuPG equivalent command:
gpg --local-user signingKeyUserId --sign-key keyUserId
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 |