Module Expr Str ImportFrom alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str FunctionDef arguments args defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Return Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Return Call SubscriptLoad NameLoad Index Str NameLoad decorator_list
N/A N/A 
This module allows you to install certificates into the windows certificate
manager.

.. code-block:: bash

    salt '*' certutil.install salt://cert.cer "TrustedPublisher"
 __future__ absolute_import N/A re N/A logging N/A salt.utils N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ certutil __virtual__ N/A N/A N/A N/A N/A 
    Only work on Windows
     N/A N/A N/A N/A salt utils is_windows N/A N/A __virtualname__ N/A False N/A get_cert_serial N/A N/A cert_file N/A N/A N/A 
    Get the serial number of a certificate file

    cert_file
        The certificate file to find the serial for

     N/A cmd N/A N/A certutil.exe -verify {0} format cert_file N/A out N/A N/A __salt__ N/A cmd.run cmd N/A matches N/A N/A re search Serial: (.*) out N/A N/A matches None N/A N/A N/A N/A N/A N/A N/A matches groups N/A 0 strip N/A N/A None N/A get_stored_cert_serials N/A N/A store N/A N/A N/A 
    Get all of the certificate serials in the specified store

    store
        The store to get all the certificate serials from

     N/A cmd N/A N/A certutil.exe -store {0} format store N/A out N/A N/A __salt__ N/A cmd.run cmd N/A matches N/A N/A re findall Serial Number: (.*)\r out N/A matches N/A add_store N/A N/A source store saltenv N/A base N/A N/A 
    Add the given cert into the given Certificate Store

    source
        The source certficate file this can be in the form
        salt://path/to/file

    store
        The certificate store to add the certificate to

    saltenv
        The salt environment to use this is ignored if the path
        is local

    CLI Example:

    .. code-block:: bash

        salt '*' certutil.add_store salt://cert.cer TrustedPublisher
     N/A cert_file N/A N/A __salt__ N/A cp.cache_file source saltenv N/A cmd N/A N/A certutil.exe -addstore {0} {1} format store cert_file N/A N/A N/A __salt__ N/A cmd.run cmd N/A del_store N/A N/A source store saltenv N/A base N/A N/A 
    Delete the given cert into the given Certificate Store

    source
        The source certficate file this can be in the form
        salt://path/to/file

    store
        The certificate store to delete the certificate from

    saltenv
        The salt environment to use this is ignored if the path
        is local

    CLI Example:

    .. code-block:: bash

        salt '*' certutil.del_store salt://cert.cer TrustedPublisher
     N/A cert_file N/A N/A __salt__ N/A cp.cache_file source saltenv N/A serial N/A get_cert_serial cert_file N/A cmd N/A N/A certutil.exe -delstore {0} {1} format store serial N/A N/A N/A __salt__ N/A cmd.run cmd N/A