• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to convert public key to base64Binary  RSS feed

 
vignesh bala
Greenhorn
Posts: 28
Eclipse IDE Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I am using WS security in SOAP messages. But I don't know how to convert the public key of the certificate to base64 Format. I tried using java.security.cert.Certificate to fetch the certificate from keystore but unable to figure out how to convert public key to base64 format. Please help.

Regards,
Vignesh
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the public key in a byte[]? Then you can use Jakarta Commons Codec quite easily.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!