Пример #1
0
def _get_a_keystore_or_truststore(
    username, password, mfa_secret, token, zonename, org, profile, name, environment, **kwargs
):
    return (
        Keystores(gen_auth(username, password, mfa_secret, token, zonename), org, name)
        .get_a_keystore_or_truststore(environment)
        .text
    )
Пример #2
0
def _list_aliases(username,
                  password,
                  mfa_secret,
                  token,
                  zonename,
                  org,
                  profile,
                  name,
                  environment,
                  prefix=None,
                  **kwargs):
    return Keystores(gen_auth(username, password, mfa_secret, token, zonename),
                     org, name).list_aliases(environment, prefix=prefix)
Пример #3
0
def _get_all_certs_from_a_keystore_or_truststore(username,
                                                 password,
                                                 mfa_secret,
                                                 token,
                                                 zonename,
                                                 org,
                                                 profile,
                                                 name,
                                                 environment,
                                                 prefix=None,
                                                 **kwargs):
    return Keystores(gen_auth(username, password, mfa_secret, token, zonename),
                     org, name).get_all_certs_from_a_keystore_or_truststore(
                         environment, prefix=prefix)
Пример #4
0
def _export_a_certificate_for_an_alias(
    username,
    password,
    mfa_secret,
    token,
    zonename,
    org,
    profile,
    name,
    environment,
    alias_name,
    **kwargs
):
    return (
        Keystores(gen_auth(username, password, mfa_secret, token, zonename), org, name)
        .export_a_certificate_for_an_alias(environment, alias_name)
        .text
    )
Пример #5
0
def _get_alias(
    username,
    password,
    mfa_secret,
    token,
    zonename,
    org,
    profile,
    name,
    environment,
    alias_name,
    **kwargs
):
    return (
        Keystores(gen_auth(username, password, mfa_secret, token, zonename), org, name)
        .get_alias(environment, alias_name)
        .text
    )