Hello Peter, I am talking about OpenPGP, i want to encrypt a file that follows openpgp standard so but when i tried with the windows version of Gnupg , i was getting an error "configuration not correct" (the error was more or less similar) . 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. Also my certificate does not show up in "openpgp certificates" list , so i am wondering that maybe the problem is that there is some specific "type" of certificate is required, although my certificate has "file encryption" present in its type!
Best Regards, Shaarang Show quoted text On Sep 6, 2017 6:59 PM, "Peter Lebbing" <pe...@digitalbrains.com> wrote: > On 06/09/17 06:37, shaarang tyagi wrote: > > I have a situation where I need to use GnuPG from command line and > > encrypt a file using a public certificate or PEM public key > > First of all, are we talking about OpenPGP, S/MIME, or both? I notice > you say PEM public key, which implies the X.509 and S/MIME ecosystem, > but GnuPG is more commonly used for the OpenPGP ecosystem. The "gpgsm" > binary of GnuPG does do S/MIME, though. > > Peter. > > -- > 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> > >
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users