Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Exporting/Importing PKI Keys. Help!!!

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Can some one tell me if there is way to export the keys that are genrated in Java to .Net or from .Net to java. Is there a work around?
I need the keys so that a Soap message that is signed by a .Net client be verified at the Server end that is implemented in Java, one point that i would like to mention is that i cannot send the public key as a part of the Key Info of the signature, which is the conventional method for the business reasons.
Thanks in advance.
 
Author
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not having worked with .Net, I am assuming that .Net takes the private key and the public key (as part of the certificate) from Windows certificate store (the same one that you access from IE, Outlook Express and other Windows applications).
If this is so, then you can easily export the certificate (and hence the public key), in a DER or PEM (BASE64 encoded) format (In IE, do Tools --> Internet Options --> Content --> Certificates; then select the certificate and click on Export ). Once you have this, you can import the certificate in a Java keystore using keytool and use it within a Java program to verify the signature.
 
reply
    Bookmark Topic Watch Topic
  • New Topic