public static TlsKeyPair of(File keyFile, @Nullable String keyPassword, File certificateChainFile) {
        requireNonNull(keyFile, "keyFile");
        requireNonNull(certificateChainFile, "certificateChainFile");
        try {
            final List<X509Certificate> certs = toX509Certificates(certificateChainFile);
            final PrivateKey key = toPrivateKey(keyFile, keyPassword);
            return of(key, certs);
        } catch (CertificateException | KeyException e) {
            throw new IllegalArgumentException(e);
        }
    }
Creates a new {@link TlsKeyPair} from the specified key file, key password and certificate chain
file.
core/src/main/java/com/linecorp/armeria/common/TlsKeyPair.java