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 SummaryFieldsModifier and TypeFieldDescription- static longRenewal trial or logging period in milliseconds, 30 minutes.
- Method SummaryModifier and TypeMethodDescription- booleanPerforms request or renewal of the certificate when it has expired.- booleanUpdates the renewal processing for the domain when the settings are changed.
- Field Details- RENEW_PERIODpublic static long RENEW_PERIODRenewal trial or logging period in milliseconds, 30 minutes.
 
- Method Details- processSettingsChangespublic 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.
 
- performRenewpublic 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, actually- org.shredzone.acme4j.exception.AcmeExceptionbut in order to avoid module dependency to the acme4j package, an- Exceptionis 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