Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Signing and encrypting emails with attachment

Reply
 
Old 06-18-2008   #1 (permalink)
Mathew Coleman


 
 

Signing and encrypting emails with attachment

Hi All,



I would like to send emails through an application. Body and attachment have
to be encrypted as well as digitally signed.



I could able to sign it and send when it does not contain an attachment.
Once I attached something someone can see the attachment even without proper
certificate installed. Also body of the email gets disappeared in the same
time.



I am using .NET 2.0 and C#. Namespaces I am using are

using System.Net.Mail;

using System.Security.Cryptography.X509Certificates;

using System.Security.Cryptography.Pkcs;



Could some one help me with this please?



Thanks

Matt



My System SpecsSystem Spec
Old 06-18-2008   #2 (permalink)
Frédéric Queudret


 
 

Re: Signing and encrypting emails with attachment

Hi,

Mail encryption is not supported in System.Net.Mail.
You can use encryption at transportation level using the EnableSsl property
on SmtpClient.
ref:
http://msdn.microsoft.com/en-us/libr...enablessl.aspx

If .NET 3.0 is possible for you, you may consider to use WCF and a message
security method (or extend the programming model to implement what you want
to do)
ref: http://msdn.microsoft.com/en-us/library/bb397811.aspx

If .NET 2.0 is the only one you can use, you may consider to implement your
own security mecanism (embed your mail as an encrypted attachment, ...).

Frédéric Queudret
CTO MPOWARE
http://www.mpoware.com/


"Mathew Coleman" <mthw.clmn@xxxxxx> wrote in message
news:uTlwEVQ0IHA.2292@xxxxxx
Quote:

> Hi All,
>
>
>
> I would like to send emails through an application. Body and attachment
> have to be encrypted as well as digitally signed.
>
>
>
> I could able to sign it and send when it does not contain an attachment.
> Once I attached something someone can see the attachment even without
> proper certificate installed. Also body of the email gets disappeared in
> the same time.
>
>
>
> I am using .NET 2.0 and C#. Namespaces I am using are
>
> using System.Net.Mail;
>
> using System.Security.Cryptography.X509Certificates;
>
> using System.Security.Cryptography.Pkcs;
>
>
>
> Could some one help me with this please?
>
>
>
> Thanks
>
> Matt
>
>
My System SpecsSystem Spec
Old 06-18-2008   #3 (permalink)
Mathew Coleman


 
 

Re: Signing and encrypting emails with attachment

Hi Frédéric,



Thanks a lot for your prompt reply.



..NET 3.0 is not possible for this scenario. As you have suggested I tried
the 3rd option earlier. There was a problem with that. In my case I want
sign the mail as well. Once I attached something the body and the signed
part is being disappeared. As you suggested I can encrypt the email as
encrypted attachment, but I cannot avoid disappearing of the body soon after
I add the attachment. I appreciate your help on this.



Thanks and regards

Matt




"Frédéric Queudret" <frederic.queudret@xxxxxx> wrote in message
news:832F29F2-574D-443C-9284-6679936BB563@xxxxxx
Quote:

> Hi,
>
> Mail encryption is not supported in System.Net.Mail.
> You can use encryption at transportation level using the EnableSsl
> property on SmtpClient.
> ref:
> http://msdn.microsoft.com/en-us/libr...enablessl.aspx
>
> If .NET 3.0 is possible for you, you may consider to use WCF and a message
> security method (or extend the programming model to implement what you
> want to do)
> ref: http://msdn.microsoft.com/en-us/library/bb397811.aspx
>
> If .NET 2.0 is the only one you can use, you may consider to implement
> your own security mecanism (embed your mail as an encrypted attachment,
> ...).
>
> Frédéric Queudret
> CTO MPOWARE
> http://www.mpoware.com/
>
>
> "Mathew Coleman" <mthw.clmn@xxxxxx> wrote in message
> news:uTlwEVQ0IHA.2292@xxxxxx
Quote:

>> Hi All,
>>
>>
>>
>> I would like to send emails through an application. Body and attachment
>> have to be encrypted as well as digitally signed.
>>
>>
>>
>> I could able to sign it and send when it does not contain an attachment.
>> Once I attached something someone can see the attachment even without
>> proper certificate installed. Also body of the email gets disappeared in
>> the same time.
>>
>>
>>
>> I am using .NET 2.0 and C#. Namespaces I am using are
>>
>> using System.Net.Mail;
>>
>> using System.Security.Cryptography.X509Certificates;
>>
>> using System.Security.Cryptography.Pkcs;
>>
>>
>>
>> Could some one help me with this please?
>>
>>
>>
>> Thanks
>>
>> Matt
>>
>>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
ALL emails have attachment icon Vista mail
When Replying To An E-Mail With Attachment, The Text Goes But NotThe Attachment. Vista mail
emails with attachment repeatedly sent in live mail Live Mail
emails with attachment repeatedly sent in live mail Vista mail
Multiple identical emails when sending picture (jpq) attachment Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46