jQuery in Action, 2nd edition*
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
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: 31
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: 31
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: 31
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java based Microsoft Email Encryption Help?
 
Similar Threads
Unable to play sounds using FreeTTS
data from servlet to jsp
Unable to get divs innerHtml Content in HtmlUnittest
user authentication and dao
[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing