Signs a public key with a private key.

Namespace: DidiSoft.Pgp
Assembly: 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

Exceptions

ExceptionCondition
DidiSoft.Pgp.Exceptions..::..WrongPrivateKeyExceptionNo private key has been found with such Key Id
DidiSoft.Pgp.Exceptions..::..WrongPublicKeyExceptionNo public key has been found with such Key Id
DidiSoft.Pgp..::..PGPExceptionOpenPGP signing error

See Also