File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/key.cpython-310.pyc
o
�N�g� � @ s, d Z ddlZddlZddd�Zddd�ZdS )z7
Functions to view the minion's public key information
� Nc C �0 | du rt d } tjjjtj�t d d�| d�S )z�
Return the minion's public key fingerprint
hash_type
The hash algorithm used to calculate the fingerprint
CLI Example:
.. code-block:: bash
salt '*' key.finger
N� hash_type�pki_dirz
minion.pub�Zsum_type�Z__opts__�salt�utilsZcryptZ
pem_finger�os�path�join�r � r
�D/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/key.py�finger
�
�r c C r )z�
Return the fingerprint of the master's public key on the minion.
hash_type
The hash algorithm used to calculate the fingerprint
CLI Example:
.. code-block:: bash
salt '*' key.finger_master
Nr r zminion_master.pubr r r r
r
r �
finger_master r r )N)�__doc__r Zsalt.utils.cryptr r r r
r
r
r �<module> s