Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

encrypt file with x509 certificate

49 views
Skip to first unread message

Mitja

unread,
Jun 26, 2004, 1:44:15 PM6/26/04
to
hi,

i want to send a symmetric encrypted file as a dime attachement with wse
2.0.
so far that is no problem but i also want to encrypt(rsa) the key for the
symmetric enryption with the public key of an x509 certificate and
RSACryptoServiceProvider. the symmetric key is stored in a stream.

searching the newsgroups and the web made me wonder if it's possible at all
because the only things i found were related to capicom.
and i did not find any statements like "it is not possible"

so can anyone tell me if it's possible to encrypt a file using an x509
certificate and RSACryptoServiceProvider and only the means of .net and wse
2.0 or do i have to use capicom?

thanks,
mitja jentges


Michel Gallant

unread,
Jun 26, 2004, 1:47:43 PM6/26/04
to
This article discusses how to use Pinvoke with .NET FCL 1.1 to encrypt
a symmetric key with public key of either a local certificate file, or a certificate
in a CryptoAPI cert store:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncapi/html/encryptdecrypt2a.asp
- Mitch

"Mitja" <mi...@jentges.org> wrote in message news:%236joAS6...@TK2MSFTNGP12.phx.gbl...

Eugene Mayevski [SecureBlackbox]

unread,
Jun 28, 2004, 8:36:49 AM6/28/04
to
Mitja wrote:

> so can anyone tell me if it's possible to encrypt a file using an x509
> certificate and RSACryptoServiceProvider and only the means of .net and wse

You can use SecureBlackbox.NET from
http://www.secureblackbox.com/description-sec-pkiblackbox.html
Use PKCS#7-compliant MessageEncryptor and MessageDecryptor classes to
encrypt/decrypt file using X.509 certificate.
SecureBlackbox has 100% native implementation of all algorithms and
standards. It doesn't use CryptoAPI or CAPICOM or any other third-party
layer.

--
Eugene Mayevski
EldoS Corp., CTO
Networking and security solutions, development and consulting services
http://www.eldos.com

0 new messages