Package io.micronaut.acme.ssl
Class AcmeSSLContextBuilder
java.lang.Object
io.micronaut.acme.ssl.AcmeSSLContextBuilder
- All Implemented Interfaces:
io.micronaut.http.server.netty.ssl.ServerSslBuilder
@Singleton
@Replaces(io.micronaut.http.server.netty.ssl.CertificateProvidedSslBuilder.class)
public class AcmeSSLContextBuilder
extends Object
implements io.micronaut.http.server.netty.ssl.ServerSslBuilder
The Netty implementation of
ServerSslBuilder
that generates an SslContext
to create a server handler
with to SSL support via a temporary self signed certificate that will be replaced by an ACME certificate once acquired.-
Constructor Details
-
AcmeSSLContextBuilder
public AcmeSSLContextBuilder(io.micronaut.http.ssl.ServerSslConfiguration ssl) - Parameters:
ssl
- The SSL configuration
-
-
Method Details
-
getSslConfiguration
public io.micronaut.http.ssl.ServerSslConfiguration getSslConfiguration()- Specified by:
getSslConfiguration
in interfaceio.micronaut.http.server.netty.ssl.ServerSslBuilder
-
build
Generates an SslContext that has an already expired self signed cert that should be replaced almost immediately by the ACME server once it is downloaded.- Specified by:
build
in interfaceio.micronaut.http.server.netty.ssl.ServerSslBuilder
- Returns:
- Optional SslContext
-