every 3rd months

[root@169s /root]# rm -rf .keystore
[root@169s /root]# $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password:
Re-enter new password:
What is your first and last name?
  [Unknown]:  www.okjsp.pe.kr
What is the name of your organizational unit?
  [Unknown]:  okjsp
What is the name of your organization?
  [Unknown]:  okjsp
What is the name of your City or Locality?
  [Unknown]:  seoul
What is the name of your State or Province?
  [Unknown]:  seoul
What is the two-letter country code for this unit?
  [Unknown]:  KR
Is CN=www.okjsp.pe.kr, OU=okjsp, O=okjsp, L=seoul, ST=seoul, C=KR correct?
  [no]:  y

Enter key password for <tomcat>
        (RETURN if same as keystore password):
Re-enter new password:

related: http://okjsp.tistory.com/1165643564

  1. pungjoo 2009.05.29 10:33

    man keytool

    -validity valDays

    valDays tells the number of days for which the certificate should be considered valid

    Validity Period

    Each certificate is valid only for a limited amount of time. This period is described by a start date and time and an end date and time, and
    can be as short as a few seconds or almost as long as a century. The validity period chosen depends on a number of factors, such as the
    strength of the private key used to sign the certificate or the amount one is willing to pay for a certificate. This is the expected period
    that entities can rely on the public value, if the associated private key has not been compromised.

+ Recent posts