Server IP : 184.154.167.98 / Your IP : 3.23.103.132 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/cloudinit/__pycache__/ |
Upload File : |
3 \�me � @ sr d Z ddlZddlZddlmZ eje�ZdddddgZd d � Z dd� Z ddd�Zddd�Zdd� Z ddd�ZdS )z0gpg.py - Collection of gpg key related functions� N)�subp�gpgz--with-fingerprintz--no-default-keyringz--list-keysz --keyringc C sZ yt j ddd| gdd�\}}W n6 t jk rT } ztjd| |� d}W Y dd}~X nX |S )z*Export gpg key, armoured key gets returnedr z--exportz--armourT)�capturez&Failed to export armoured key "%s": %sN)r �ProcessExecutionError�LOG�debug)�key�armour�_�error� r �/usr/lib/python3.6/gpg.py� export_armour s r c C s t j ddg| dd�jS )z~Dearmor gpg key, dearmored key gets returned note: man gpg(1) makes no mention of an --armour spelling, only --armor r z --dearmorF)�data�decode)r �stdout)r r r r �dearmor'