Package com.iizix.server.acme
Class LetsEncryptRenewal
- java.lang.Object
- com.iizix.server.acme.LetsEncryptRenewal
public class LetsEncryptRenewal extends java.lang.ObjectClass used to create or renew the certificate for a domain in the server.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description static longRENEW_PERIODRenewal trial or logging period in milliseconds, 30 minutes.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanperformRenew()Performs request or renewal of the certificate when it has expired.booleanprocessSettingsChanges()Updates the renewal processing for the domain when the settings are changed.
Method Detail
processSettingsChanges
public boolean processSettingsChanges()
Updates the renewal processing for the domain when the settings are changed. This method is not called by the framework and must be called in order to update the instance with changed settings. This is done typically from the ServerAdmin app.- Returns:
- true for success, false if nothing was changed or server or domain settings are disposed of.
performRenew
public boolean performRenew() throws java.lang.Exception, java.io.IOException, java.net.URISyntaxException, java.security.UnrecoverableKeyException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, PropExceptionPerforms request or renewal of the certificate when it has expired.- Returns:
- Flag indicating auto-accept is used and a second request is done when true, false otherwise.
- Throws:
java.lang.Exception- For ACME problems, actuallyorg.shredzone.acme4j.exception.AcmeExceptionbut in order to avoid module dependency to the acme4j package, anExceptionis specified here.java.io.IOException- For I/O errors.java.net.URISyntaxException- If the ToS URI is in error.java.security.NoSuchAlgorithmException- If the algorithm used to check the integrity of the keystore cannot be found.java.security.cert.CertificateException- If any of the certificates in the keystore could not be loaded.java.security.UnrecoverableKeyException- If the key cannot be recovered (e.g. the given password is wrong).java.security.KeyStoreExceptionPropException