Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
86f80b77
Commit
86f80b77
authored
6 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Install python3-openssl if not already installed.
parent
d5976229
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_ssl.py
+7
-1
7 additions, 1 deletion
tests/test_ssl.py
with
7 additions
and
1 deletion
tests/test_ssl.py
+
7
−
1
View file @
86f80b77
...
@@ -7,12 +7,18 @@ Checks that TLS certificates are valid; if invalid, the user will have to add an
...
@@ -7,12 +7,18 @@ Checks that TLS certificates are valid; if invalid, the user will have to add an
'''
'''
import
datetime
import
datetime
import
imp
import
imp
import
OpenSSL
import
os
import
os
import
requests
import
requests
import
sys
import
sys
import
ssl
import
ssl
try
:
import
OpenSSL
except
ImportError
:
import
subprocess
subprocess
.
call
([
'
apt-get
'
,
'
-qq
'
,
'
-y
'
,
'
install
'
,
'
python3-openssl
'
])
import
OpenSSL
YELLOW
=
'
\033
[93m
'
YELLOW
=
'
\033
[93m
'
GREEN
=
'
\033
[92m
'
GREEN
=
'
\033
[92m
'
RED
=
'
\033
[91m
'
RED
=
'
\033
[91m
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment