anchor.diff:          <<"currentPassword">> => OldPassword,
           <<"newPassword">> => NewPassword
       }),
  -    {ok, CaCertsDir} = application:get_env(?APP_NAME, cacerts_dir),
  -    CaCerts = cert_utils:load_ders_in_dir(CaCertsDir),
  -    Opts = [{ssl_options, [{cacerts, CaCerts}]}],
  -    case http_client:patch(URL, Headers, Body, Opts) of
  +    case http_client:patch(URL, Headers, Body, ?ONEPANEL_SSL_OPTS) of
           {ok, 204, _, _} ->
               ok;
           {ok, 401, _, _} ->
  
positive.code: % (Artificial) identity provider id used for creating user ids for users
  % coming from onepanel.
  -define(ONEZONE_IDP_ID, onezone).
  
  -export([
      create/1, create/2,
  
negative.code: authenticate_by_basic_credentials(Login, Password) ->
      Headers = basic_auth_header(Login, Password),
      URL = get_onepanel_rest_user_url(Login),
      RestCallResult = case http_client:get(URL, Headers, <<"">>, ?ONEPANEL_SSL_OPTS) of
          {ok, 200, _, JSON} ->
              json_utils:decode(JSON);
          {ok, 401, _, _} ->
  