private List<X509Certificate> findTrustedCertificates(String hostname) {
        List<X509Certificate> certs = tlsProvider.trustedCertificates(hostname);
        if (certs == null) {
            certs = tlsProvider.trustedCertificates("*");
        }
        return firstNonNull(certs, ImmutableList.of());
    }
Returns an {@link SslContext} for the specified {@link SslContextMode} and {@link TlsKeyPair}.
Note that the returned {@link SslContext} should be released via
{@link ReferenceCountUtil#release(Object)} when it is no longer used.
core/src/main/java/com/linecorp/armeria/internal/common/SslContextFactory.java