@Override
        protected KeyStore load(boolean isKeyStore) {
            try {
                Password storeContents = new Password(Utils.readFileAsString(path));
                PemStore pemStore = isKeyStore ? new PemStore(storeContents, storeContents, keyPassword) :
                    new PemStore(storeContents);
                return pemStore.keyStore;
            } catch (Exception e) {
                throw new InvalidConfigurationException("Failed to load PEM SSL keystore " + path, e);
            }
        }
Loads this keystore
@return the keystore
@throws KafkaException if the file could not be read or if the keystore could not be loaded
  using the specified configs (e.g. if the password or keystore type is invalid)
clients/src/main/java/org/apache/kafka/common/security/ssl/DefaultSslEngineFactory.java