title: why is my certificate expiring so soon?
body: <p>I created a keystore for Artifactory as follows:</p>
  
  <pre><code>openssl genrsa -des3 -out jetty.key
  openssl req -new -x509 -key jetty.key -out jetty.crt
  keytool -keystore keystore -import -alias jetty -file jetty.crt -trustcacerts
  openssl req -new -key jetty.key -out jetty.csr
  openssl pkcs12 -inkey jetty.key -in jetty.crt -export -out jetty.pkcs12
  keytool -importkeystore -srckeystore jetty.pkcs12 -srcstoretype PKCS12 -destkeystore keystore
  </code></pre>
  
  <p>I just created it this week but am already getting a warning that the certificate is expiring soon.</p>
  
  <pre><code>"WARNING - Certificate expires in 26 day(s) ".
  </code></pre>
  
  <p>why is it expiring so soon and how can I extend the expiry date?</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks</p>