code: public static SSLContext createInstance(Config srcConfig) {
      // srcConfig.getString() will throw ConfigException if any key is missing
      String keyStoreFilePath = srcConfig.getString(KEY_STORE_FILE_PATH);
      String trustStoreFilePath = srcConfig.getString(TRUST_STORE_FILE_PATH);
      PasswordManager passwdMgr = PasswordManager.getInstance(ConfigUtils.configToState(srcConfig));
      String keyStorePassword = passwdMgr.readPassword(srcConfig.getString(KEY_STORE_PASSWORD));
      String trustStorePassword = passwdMgr.readPassword(srcConfig.getString(TRUST_STORE_PASSWORD));
  
      return createInstance(new File(keyStoreFilePath), keyStorePassword, srcConfig.getString(KEY_STORE_TYPE),
          new File(trustStoreFilePath), trustStorePassword);
    }
docs: Create a {@link SSLContext} from a {@link Config}
  
  <p>
  A sample configuration is:
  <br> keyStoreFilePath=/path/to/key/store
  <br> keyStorePassword=password
  <br> keyStoreType=PKCS12
  <br> trustStoreFilePath=/path/to/trust/store
  <br> trustStorePassword=password
  </p>
  
  @param srcConfig configuration
  @return an instance of {@link SSLContext}