Package com.iizix.server.acme
Class LetsEncryptRenewal
java.lang.Object
com.iizix.server.acme.LetsEncryptRenewal
Class used to create or renew the certificate for a domain in the server.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionstatic long
Renewal trial or logging period in milliseconds, 30 minutes.Method Summary
Modifier and TypeMethodDescriptionboolean
Performs request or renewal of the certificate when it has expired.boolean
Updates the renewal processing for the domain when the settings are changed.
Field Details
RENEW_PERIOD
public static long RENEW_PERIODRenewal trial or logging period in milliseconds, 30 minutes.
Method Details
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 Exception, IOException, URISyntaxException, UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, 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:
Exception
- For ACME problems, actuallyorg.shredzone.acme4j.exception.AcmeException
but in order to avoid module dependency to the acme4j package, anException
is specified here.IOException
- For I/O errors.URISyntaxException
- If the ToS URI is in error.NoSuchAlgorithmException
- If the algorithm used to check the integrity of the keystore cannot be found.CertificateException
- If any of the certificates in the keystore could not be loaded.UnrecoverableKeyException
- If the key cannot be recovered (e.g. the given password is wrong).KeyStoreException
PropException