This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java based Microsoft Email Encryption Help? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java based Microsoft Email Encryption Help?" Watch "Java based Microsoft Email Encryption Help?" New topic
Author

Java based Microsoft Email Encryption Help?

James Collings
Ranch Hand

Joined: Sep 21, 2006
Posts: 36
Anybody know how to extract a user's public key from an attached signature? Attached file name is: smime.p7s

Reason I need this:

We want to send our user's encrypted emails that they can decrypt.
Srikanth Nutigattu
Ranch Hand

Joined: Oct 30, 2007
Posts: 114
If I understood correctly, You want to encrypt emails using a public key in Java, isn't it?
James Collings
Ranch Hand

Joined: Sep 21, 2006
Posts: 36
Srikanth Nutigattu wrote:If I understood correctly, You want to encrypt emails using a public key in Java, isn't it?


Right. Assume server can get user's public keys from some sort of back-end. In theory, then, all I need is to generate a server side key pair, provide the user with access to the server public key and then encrypt using the server private key and user public key. Send and then the user decrypts with provided server public key and their mown private key.

I'm finding that not many do this. In fact, the most commonly used library seems to be BouncyCastle rather than Java security.
Srikanth Nutigattu
Ranch Hand

Joined: Oct 30, 2007
Posts: 114
I think the JCA/JCE (Java Cryptographic Extension) deals with the issue.

http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.html

Thanks.
James Collings
Ranch Hand

Joined: Sep 21, 2006
Posts: 36
Srikanth Nutigattu wrote:I think the JCA/JCE (Java Cryptographic Extension) deals with the issue.

http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.html

Thanks.


Actually, I've been all up and down this and can't find a way that is compatible with 90% of enterprise mail clients. In other words Outlook / Exchange. Kinda pointless if you don't support what most people use.
 
wood burning stoves
 
subject: Java based Microsoft Email Encryption Help?