Hello Shaarang, On 06/09/17 16:13, shaarang tyagi wrote: > I am talking about OpenPGP, i want to encrypt a file that follows > openpgp standard [...]
> I was encrypting by selecting a certificate which i had imported , i had > also imported its root ca, so certificate chain was fully there but > encryption failed. "Root CA", "certificate chain" and your earlier "PEM public key" tell me you are using certificates from the Cryptographic Message Syntax ecosystem (to which S/MIME belongs also). These are not OpenPGP certificates/public keys, and it is simply impossible to encrypt an OpenPGP message to them. You will need to ask your peer for their OpenPGP certificate (also called "public key") before you can send them an OpenPGP encrypted message. They are two completely separate and incompatible ecosystems. It just so happens that GnuPG does have some support for CMS as well, through the gpgsm binary. More about starting with OpenPGP is in The GNU Privacy Handbook[1]. That guide is pretty outdated, though, so don't take its word for gospel. HTH, Peter. [1] <https://www.gnupg.org/gph/en/manual.html> -- I use the GNU Privacy Guard (GnuPG) in combination with Enigmail. You can send me encrypted mail if you want some privacy. My key is available at <http://digitalbrains.com/2012/openpgp-key-peter>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users