%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/states/win_pki.pyc

�
���^c@@s{dZddlmZmZmZdZdZdZddlm	Z	d�Z
eeeedd	d
�Zeed�Z
dS(
uw
Microsoft certificate management via the Pki PowerShell module.

:platform:      Windows

.. versionadded:: 2016.11.0
i(tabsolute_importtunicode_literalstprint_functionuLocalMachineuceruMy(tsixcC@sdtkrtStS(u<
    Load only on minions that have the win_pki module.
    uwin_pki.get_stores(t__salt__tTruetFalse(((s7/usr/lib/python2.7/site-packages/salt/states/win_pki.pyt__virtual__suubasecC@s�i|d6t�d6tj�d6dd6}dj||�}td||�}	tdd|d	|�}
|r�td
d|	d|d
|�}ntd
d|	d|�}|d|
kr�dj|d|�|d<t|d<n�tdr$dj|d|�|d<idd6|dd6|d<n�idd6|dd6|d<tdd|d|d|d	|d|d
|d|�|d<|dr�dj|d|�|d<ndj|d|�|d<|S(u�
    Import the certificate file into the given certificate store.

    :param str name: The path of the certificate file to import.
    :param str cert_format: The certificate format. Specify 'cer' for X.509, or 'pfx' for PKCS #12.
    :param str context: The name of the certificate store location context.
    :param str store: The name of the certificate store.
    :param bool exportable: Mark the certificate as exportable. Only applicable to pfx format.
    :param str password: The password of the certificate. Only applicable to pfx format.
    :param str saltenv: The environment the file resides in.

    Example of usage with only the required arguments:

    .. code-block:: yaml

        site0-cert-imported:
            win_pki.import_cert:
                - name: salt://win/webserver/certs/site0.cer

    Example of usage specifying all available arguments:

    .. code-block:: yaml

        site0-cert-imported:
            win_pki.import_cert:
                - name: salt://win/webserver/certs/site0.pfx
                - cert_format: pfx
                - context: LocalMachine
                - store: My
                - exportable: True
                - password: TestPassword
                - saltenv: base
    unameuchangesucommenturesultu
Cert:\{0}\{1}u
cp.cache_fileuwin_pki.get_certstcontexttstoreuwin_pki.get_cert_filetnametcert_formattpasswordu
thumbprintu1Certificate '{0}' already contained in store: {1}utestu2Certificate '{0}' will be imported into store: {1}uoldunewuwin_pki.import_certt
exportabletsaltenvu*Certificate '{0}' imported into store: {1}u7Certificate '{0}' unable to be imported into store: {1}N(tdictRt	text_typetNonetformatRRt__opts__(R
RRR	R
RRtrett
store_pathtcached_source_patht
current_certst
cert_props((s7/usr/lib/python2.7/site-packages/salt/states/win_pki.pytimport_certs>#



"





cC@s8i|d6t�d6tj�d6dd6}dj||�}tdd|d|�}||kr�d	j||�|d<t|d<n�td
r�dj||�|d<i|d6dd
6|d<nti|d6dd
6|d<tdd|d|d|�|d<|drdj||�|d<ndj||�|d<|S(u
    Remove the certificate from the given certificate store.

    :param str thumbprint: The thumbprint value of the target certificate.
    :param str context: The name of the certificate store location context.
    :param str store: The name of the certificate store.

    Example of usage with only the required arguments:

    .. code-block:: yaml

        site0-cert-removed:
            win_pki.remove_cert:
                - thumbprint: 9988776655443322111000AAABBBCCCDDDEEEFFF

    Example of usage specifying all available arguments:

    .. code-block:: yaml

        site0-cert-removed:
            win_pki.remove_cert:
                - thumbprint: 9988776655443322111000AAABBBCCCDDDEEEFFF
                - context: LocalMachine
                - store: My
    unameuchangesucommenturesultu
Cert:\{0}\{1}uwin_pki.get_certsRR	u1Certificate '{0}' already removed from store: {1}utestu1Certificate '{0}' will be removed from store: {1}uoldunewuwin_pki.remove_certt
thumbprintu)Certificate '{0}' removed from store: {1}u6Certificate '{0}' unable to be removed from store: {1}N(RRRRRRRR(R
RRR	RRR((s7/usr/lib/python2.7/site-packages/salt/states/win_pki.pytremove_cerths0



	


	




	
N(t__doc__t
__future__RRRt_DEFAULT_CONTEXTt_DEFAULT_FORMATt_DEFAULT_STOREtsalt.extRRRRR(((s7/usr/lib/python2.7/site-packages/salt/states/win_pki.pyt<module>s			I

Zerion Mini Shell 1.0