Skip to content
Snippets Groups Projects
Commit 86f80b77 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Install python3-openssl if not already installed.

parent d5976229
No related branches found
No related tags found
No related merge requests found
......@@ -7,12 +7,18 @@ Checks that TLS certificates are valid; if invalid, the user will have to add an
'''
import datetime
import imp
import OpenSSL
import os
import requests
import sys
import ssl
try:
import OpenSSL
except ImportError:
import subprocess
subprocess.call(['apt-get', '-qq', '-y', 'install', 'python3-openssl'])
import OpenSSL
YELLOW = '\033[93m'
GREEN = '\033[92m'
RED = '\033[91m'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment