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

how to store the digital certificate

 
hossein arabi
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
I am quite new in this field...I have created a digital certificate by using JAVA API not with any keytools or openssl. now I want to store the certificate... how I can do it ?
I will be thankful if anyone can help me in this matter
Thank You.
 
K Aditi
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can store the digital cerificate as a simple text file with an extension .cer.I hope this answers your question.
 
Carey Evans
Ranch Hand
Posts: 225
Debian Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the same APIs as keytool to save your certificate in a Java keystore. And as K Aditi said, you can export a certificate as a text file, using an X.509 CertificateFactory. I guess you'll still need to save the private key separately, possibly using an RSA KeyFactory and a PKCS8EncodedKeySpec.
 
hossein arabi
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks friend...I will try ;)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic