Signs a given text
Example 858. Procedural gnupg_sign() example
Example 859. OO gnupg_sign() example
Code Examples / Notes » gnupg_sign
It's a bit confusing how the "keyinfo" for a key returns "can_sign".
If you have only added your Public Key, it will indicate "can_sign" for the key in "keyinfo", but that doesn't mean yet, that you can sign with the key. You will also need to add your Private Key to actually make signing work.