Class Acme
java.lang.Object
com.predic8.membrane.core.config.security.acme.Acme
- Description
Configures an ACME (RFC 8555) client, e.g. to retrieve TLS certificates from Let's Encrypt.
To store the key material and certificates, you can use the local file system or your Kubernetes cluster.
To use ACME:
- Register your domain and point the DNS record to your server(s) runnig Membrane.
- Let Membrane listen on port 80 and use the
<acmeHttpChallenge />(see below). - Let Membrane listen on port 443 and use
<ssl><acme .../><ssl>(see below). Here, you have to configure where Membrane will store the keys and certificates.
- Topic
- 6. Security
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHosts()intgetRetry()org.joda.time.DurationinthashCode()booleanbooleanvoidsetAcmeSynchronizedStorage(AcmeSynchronizedStorage acmeSynchronizedStorage) voidsetContacts(String contacts) voidsetDirectoryUrl(String directoryUrl) voidsetExperimental(boolean experimental) voidvoidsetHttpClientConfiguration(HttpClientConfiguration httpClientConfiguration) voidsetRenewal(String renewal) voidsetRetry(int retry) voidsetTermsOfServiceAgreed(boolean termsOfServiceAgreed) voidsetValidationMethod(AcmeValidation validationMethod) voidsetValidity(String validity)
-
Constructor Details
-
Acme
public Acme()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getDirectoryUrl
-
setDirectoryUrl
-
getHttpClientConfiguration
-
setHttpClientConfiguration
-
isTermsOfServiceAgreed
public boolean isTermsOfServiceAgreed() -
setTermsOfServiceAgreed
public void setTermsOfServiceAgreed(boolean termsOfServiceAgreed) -
getContacts
-
setContacts
- Example
- mailto:webmaster@example.com
-
getValidity
-
setValidity
- Example
- PT7D
-
getValidityDuration
public org.joda.time.Duration getValidityDuration() -
getAcmeSynchronizedStorage
-
setAcmeSynchronizedStorage
-
isExperimental
public boolean isExperimental() -
setExperimental
public void setExperimental(boolean experimental) -
getHosts
-
setHosts
-
getRenewal
-
setRenewal
- Default
- 1/3
- Description
- When to renew the certificate. Can be "1/3" (meaning that the certificate will be renewed when 1/3 of the validity period is left) or "never" (meaning that renewal will never be attempted). If you choose "never", someone else should take care of renewing the key and certificate and update the storage accordingly.
-
getRetry
public int getRetry() -
setRetry
public void setRetry(int retry) - Default
- 10000
- Description
- Number of milliseconds after which a retry should be attempted. (in case of any error, e.g. in case the ACME server cannot be reached or validation failed.)
-
getValidationMethod
-
setValidationMethod
-