I want to create a Java keystore and would like the expiry date to be beyond 2035. Is it possible to set the expiry time beyond 30 years?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suppose you could by altering the number you use to generate the keystore, but why would you want to? This seems like a terrible idea from a security perspective.
EXAMPLE keytool -genkey -alias myjavakey -keyalg RSA -validity 3650
WOULD BE MORE LIKE keytool -genkey -alias myjavakey -keyalg RSA -validity 36500
or something similar. I’m sure you get the idea.