%PDF- %PDF-
| Direktori : /lib/python2.7/site-packages/salt/modules/ |
| Current File : //lib/python2.7/site-packages/salt/modules/acme.pyc |
�
���^c @@ s1 d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z e j
e � Z e j
j j d d d d d g � Z d Z d
� Z d � Z d � Z d d
� Z d d d e d d d d d d d d d d d d d d d � Z d � Z d � Z d � Z d � Z d d � Z d d � Z d S( uo
ACME / Let's Encrypt module
===========================
.. versionadded: 2016.3
This module currently looks for certbot script in the $PATH as
- certbot,
- lestsencrypt,
- certbot-auto,
- letsencrypt-auto
eventually falls back to /opt/letsencrypt/letsencrypt-auto
.. note::
Installation & configuration of the Let's Encrypt client can for example be done using
https://github.com/saltstack-formulas/letsencrypt-formula
.. warning::
Be sure to set at least accept-tos = True in cli.ini!
Most parameters will fall back to cli.ini defaults if None is given.
DNS plugins
-----------
This module currently supports the CloudFlare certbot DNS plugin. The DNS
plugin credentials file needs to be passed in using the
``dns_plugin_credentials`` argument.
Make sure the appropriate certbot plugin for the wanted DNS provider is
installed before using this module.
i ( t absolute_importt print_functiont unicode_literalsNu certbotu letsencryptu certbot-autou letsencrypt-autou! /opt/letsencrypt/letsencrypt-autou /etc/letsencrypt/live/c C@ s t d k d f S( u6
Only work when letsencrypt-auto is installed
uK The ACME execution module cannot be loaded: letsencrypt-auto not installed.N( t LEAt None( ( ( s5 /usr/lib/python2.7/site-packages/salt/modules/acme.pyt __virtual__6 s c C@ s t j j t | d j | � � S( u;
Return expected path of a Let's Encrypt live cert
u {0}.pem( t ost patht joint LE_LIVEt format( t namet cert_type( ( s5 /usr/lib/python2.7/site-packages/salt/modules/acme.pyt
_cert_file= s c C@ s| t | d � } d t k r2 t d | � d } n: d j | � } d j | � } t t d | d d �� } t j j | � S( uV
Return the expiry date of a cert
:return datetime object of expiry date
u certu
tls.cert_infou not_afteru$ openssl x509 -in {0} -noout -enddateu&