Home
My Page
Projects
gpg4win

Forum: help-en

Monitor Forum | Start New Thread Start New Thread
RE: Encrypt file in Kleopatra with X.509 certificate and decrypt in Biztalk [ reply ]
By: Bernhard Reiter on 2017-08-30 16:02
[forum:5091]
You are welcome!

(If that saved your day, consider paying for or donating to Gpg4win:
https://www.gpg4win.org/donate.html ;) )

RE: Encrypt file in Kleopatra with X.509 certificate and decrypt in Biztalk [ reply ]
By: Jo Ra on 2017-08-30 14:44
[forum:5090]
Thanks for a clarifying answer Bernhard :)

RE: Encrypt file in Kleopatra with X.509 certificate and decrypt in Biztalk [ reply ]
By: Bernhard Reiter on 2017-08-30 07:10
[forum:5089]
Hi Jo,

the first thing to note for your understanding is:
While using the same cryptographic principles, there are two different format specifications for end-to-end cryptography objects like certificates and cyphertext.

a) the cryptographic message syntax (CMS) https://en.wikipedia.org/wiki/Cryptographic_Message_Syntax
b) OpenPGP aka RFC4880 and others.

When creating a CMS object by encrypting to an x509 certificate,
you cannot decrypt it with an OpenPGP engine, because that is the wrong "format".

However GnuPG (the crypto engine coming with Gpg4win) can handle both CMS and OpenPGP. So yes you could add the necessary private keys for x509 to GnuPG and use the command line or other Ggp4win components to decrypt CMS objects. Note that this configuration usually is advanced, because of the great variety of CMS based standards
makes it hard to configure what you actually want. But it can be done, see here for some hints for older versions of GnuPG https://wiki.gnupg.org/X.509

Best Regards,
Bernhard

RE: Encrypt file in Kleopatra with X.509 certificate and decrypt in Biztalk [ reply ]
By: Jo Ra on 2017-08-29 16:27
[forum:5087]
Is it possible to import information about X.509 decrypt information to secring.gpg end pubring.gpg?

Encrypt file in Kleopatra with X.509 certificate and decrypt in Biztalk [ reply ]
By: Jo Ra on 2017-08-29 15:29
[forum:5086]
Hi,
We have imported our Encrypting X.509 certificate in Kleopatra from at .cer file.
We use Kleopatra Version 2.2.0-gitfb4ae3d (2015-11-12).

We encrypt a file with "File Sing/Encrypt Files" and selected "Encrypt" and we get an encrypted file with file extention .p7m. Encryption works fine :)


We now need to decrypt this .p7m file in Biztalk.

We would like to use an "OpenPGP Pipeline Component" - ref link

https://www.nsoftware.com/kb/articles/pgppipeline.rst

but we are not able to decrypt the message with this pipeline.

Do you know if it is possible to use "OpenPGP" to decrypt a .p7m file?

Thanks

Regards
Jo


This site is hosted by Intevation GmbH