%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/win_certutil.pyo

�
���^c@@stdZddlmZmZmZddlZddlZeje	�Z
dZd�Zdd�Z
dd�ZdS(	u$
Installing of certificates to the Windows Certificate Manager
=============================================================

Install certificates to the Windows Certificate Manager

.. code-block:: yaml

    salt://certs/cert.cer:
      certutil.add_store:
        - store: TrustedPublisher
i(tabsolute_importtunicode_literalstprint_functionNucertutilcC@stjjj�rtStS(u
    Only work on Windows
    (tsalttutilstplatformt
is_windowst__virtualname__tFalse(((s</usr/lib/python2.7/site-packages/salt/states/win_certutil.pyt__virtual__subasecC@s�i|d6td6dd6id6}td||�}|tkr^t|d<|dcd7<n�td|�}td	|�}||kr�td
||�}d|kr�||dd<q�t|d<|dcd
j|�7<n|dcdj|�7<|S(u-
    Store a certificate to the given store

    name
        The certificate to store, this can use local paths
        or salt:// paths

    store
        The store to add the certificate to

    saltenv
        The salt environment to use, this is ignored if a local
        path is specified

    unameuresultuucommentuchangesu
cp.cache_fileuCertificate file not found.ucertutil.get_cert_serialu certutil.get_stored_cert_serialsucertutil.add_storeusuccessfullyuaddeduFailed to store certificate {0}u{0} already stored.(tTruet__salt__Rtformat(tnametstoretsaltenvtrett	cert_filetcert_serialtserialstout((s</usr/lib/python2.7/site-packages/salt/states/win_certutil.pyt	add_store"s$



cC@s�i|d6td6dd6id6}td||�}|tkr^t|d<|dcd7<n�td|�}td	|�}||kr�td
||�}d|kr�||dd<q�t|d<|dcd
j|�7<n|dcdj|�7<|S(u4
    Remove a certificate in the given store

    name
        The certificate to remove, this can use local paths
        or salt:// paths

    store
        The store to remove the certificate from

    saltenv
        The salt environment to use, this is ignored if a local
        path is specified

    unameuresultuucommentuchangesu
cp.cache_fileuCertificate file not found.ucertutil.get_cert_serialu certutil.get_stored_cert_serialsucertutil.del_storeusuccessfullyuremovedu$Failed to remove the certificate {0}u{0} already removed.(R
RRR(R
RRRRRRR((s</usr/lib/python2.7/site-packages/salt/states/win_certutil.pyt	del_storeLs$



(t__doc__t
__future__RRRtloggingtsalt.utils.platformRt	getLoggert__name__tlogRR	RR(((s</usr/lib/python2.7/site-packages/salt/states/win_certutil.pyt<module>
s		*

Zerion Mini Shell 1.0