Open
Description
Currently the channel is getting initialized before the acme setup is done and is causing this exception:
00:38:15.311 [nioEventLoopGroup-1-2] WARN io.netty.channel.ChannelInitializer - Failed to initialize a channel. Closing: [id: 0x6816b54e, L:/10.128.0.3:443 - R:/24.154.202.70:55297]
java.lang.NullPointerException: null
at io.micronaut.configuration.acme.ssl.DelegatedSslContext.newEngine(DelegatedSslContext.java:79)
at io.netty.handler.ssl.SslContext.newHandler(SslContext.java:953)
at io.netty.handler.ssl.SslContext.newHandler(SslContext.java:945)
at io.micronaut.http.server.netty.NettyHttpServer$NettyHttpServerInitializer.initChannel(NettyHttpServer.java:746)
at io.micronaut.http.server.netty.NettyHttpServer$NettyHttpServerInitializer.initChannel(NettyHttpServer.java:734)
The refresh task should probably listen to io.micronaut.context.event.StartupEvent and block until its finished