o
    º¿ a¢  ã                   @   s’   d Z ddlZdZdZz
ddlmZ dZW n	 ey   Y nw dZdZz
ddl	m
Z dZW n	 ey5   Y nw dZdd	„ Zed
krGeeƒ ƒ dS dS )z%Utilities for certificate management.é    NF)ÚwhereT)Úgetz"/etc/ssl/certs/ca-certificates.crtc                  C   sD   t j d¡} | d urt j | ¡r| S tdƒ‚trtƒ S tr t	ƒ S t
S )NÚHTTPLIB2_CA_CERTSz7Environment variable HTTPLIB2_CA_CERTS not a valid file)ÚosÚenvironr   ÚpathÚisfileÚRuntimeErrorÚcustom_ca_locater_availableÚcustom_ca_locater_whereÚcertifi_availableÚcertifi_whereÚBUILTIN_CA_CERTS)Úenv© r   ú0/usr/lib/python3/dist-packages/httplib2/certs.pyr      s   r   Ú__main__)Ú__doc__r   r   r   Úcertifir   ÚImportErrorr
   r   Úca_certs_locaterr   r   Ú__name__Úprintr   r   r   r   Ú<module>   s.    ÿÿÿ