@Override
    public VirtualHostBuilder tlsCustomizer(Consumer<? super SslContextBuilder> tlsCustomizer) {
        requireNonNull(tlsCustomizer, "tlsCustomizer");
        checkState(!portBased,
                   "Cannot configure TLS to a port-based virtual host. Please configure to %s.tlsCustomizer()",
                   ServerBuilder.class.getSimpleName());
        if (this.tlsCustomizer == null) {
            //noinspection unchecked
            this.tlsCustomizer = (Consumer<SslContextBuilder>) tlsCustomizer;
        } else {
            this.tlsCustomizer = this.tlsCustomizer.andThen(tlsCustomizer);
        }
        return this;
    }
Configures SSL or TLS of this {@link VirtualHost} with an auto-generated self-signed certificate.
<strong>Note:</strong> You should never use this in production but only for a testing purpose.

@see #tlsCustomizer(Consumer)
@deprecated Use {@link #tls(TlsKeyPair)} with {@link TlsKeyPair#ofSelfSigned()}.
core/src/main/java/com/linecorp/armeria/server/VirtualHostBuilder.java