Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

digital sign java mail  RSS feed

 
simon valter
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a certificate that i want to sign emails with.

I think i managed to load the certificate, but I dont know where to go on from here.

can someone please point me in the right direction either with a solution or some good reading.

Thanks.
 
Daniil Sosonkin
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try BouncyCastle libraries, they have good examples that work. I can send sample code if you still need it
 
simon valter
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes that is what i did.. forgot that i had made this question, but now when your here perhaps you can take a look at my code and check if im doing it the best way. It is working but perhaps i misunderstood something... like the part where i get the alias... im not verry experienced with this



[ March 14, 2007: Message edited by: simon valter ]
 
Daniil Sosonkin
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you did seems to be correct. Except for the way you are looking for the alias. When I was searching the web I've managed to find something more satisfying:



But a question to you, maybe you've ran into this. Do you know if its possible to encrypt email w/ .cer instead of .pfx? I got that working, but users on the receiving end seem to be having troubles decoding it. So I'm wondering if its at all possible.
 
simon valter
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help on the alias.
I'm sorry to say I havent played with encryption yet, so I can't help you with that.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!