• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

modify keystore

 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to modify the keystore file and change its validity. Is it something possible? I created the keystore using the following command

keytool -genkey -alias test -keystore test.keystore

the validity of this keystore is 3 months (using default) and the certificate that I added to the keystore is valid for 3 years. Is there anything I could do. because now when I launch the website and view the certificate its validity is only three months but when I check the certificate by double clicking it its validity is 3 years.

If this is not possible then can I make a new keystore and add the certificate to this new keystore.

Thanks
Imad
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can remove a certificate from a keystore by using the keytool -delete option.
 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok now here is my question then. What is happening is when I view the certificate in the browser it actually shows me the details of the keystore for example the valid dates of keystore not the certificate. so in browser when I say view certificate it shows me the keystore not the certificate.

Why do you think it is?
Thanks for your reply.
Imad
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic