• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java based Microsoft Email Encryption Help?

 
James Collings
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understood correctly, You want to encrypt emails using a public key in Java, isn't it?
 
James Collings
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic