Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gajim-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Evert Mouw
gajim-plugins
Commits
c444ff79
Commit
c444ff79
authored
8 years ago
by
BoySka
Committed by
Yann Leboulanger
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[plugin_installer] letsencrypt CA pinning
parent
deede80f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugin_installer/DST_Root_CA_X3.pem
+20
-0
20 additions, 0 deletions
plugin_installer/DST_Root_CA_X3.pem
plugin_installer/plugin_installer.py
+8
-1
8 additions, 1 deletion
plugin_installer/plugin_installer.py
with
28 additions
and
1 deletion
plugin_installer/DST_Root_CA_X3.pem
0 → 100644
+
20
−
0
View file @
c444ff79
-----BEGIN CERTIFICATE-----
MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/
MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT
DkRTVCBSb290IENBIFgzMB4XDTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVow
PzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3QgQ28uMRcwFQYDVQQD
Ew5EU1QgUm9vdCBDQSBYMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AN+v6ZdQCINXtMxiZfaQguzH0yxrMMpb7NnDfcdAwRgUi+DoM3ZJKuM/IUmTrE4O
rz5Iy2Xu/NMhD2XSKtkyj4zl93ewEnu1lcCJo6m67XMuegwGMoOifooUMM0RoOEq
OLl5CjH9UL2AZd+3UWODyOKIYepLYYHsUmu5ouJLGiifSKOeDNoJjj4XLh7dIN9b
xiqKqy69cK3FCxolkHRyxXtqqzTWMIn/5WgTe1QLyNau7Fqckh49ZLOMxt+/yUFw
7BZy1SbsOFU5Q9D8/RhcQPGX69Wam40dutolucbY38EVAjqr2m7xPi71XAicPNaD
aeQQmxkqtilX4+U9m5/wAl0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV
HQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMSnsaR7LHH62+FLkHX/xBVghYkQMA0GCSqG
SIb3DQEBBQUAA4IBAQCjGiybFwBcqR7uKGY3Or+Dxz9LwwmglSBd49lZRNI+DT69
ikugdB/OEIKcdBodfpga3csTS7MgROSR6cz8faXbauX+5v3gTt23ADq1cEmv8uXr
AvHRAosZy5Q6XkjEGB5YGV8eAlrwDPGxrancWYaLbumR9YbK+rlmM6pZW87ipxZz
R8srzJmwN0jP41ZL9c8PDHIyh8bwRLtTcm1D9SZImlJnt1ir/md2cXjbDaJWFBM5
JDGFoqgCWjBH4d1QB7wCCZAA62RjYJsWvIjJEubSfZGL+T0yjWW06XyxV3bqxbYo
Ob8VZRzI9neWagqNdwvYkQsEjgfbKbYK7p2CNTUQ
-----END CERTIFICATE-----
This diff is collapsed.
Click to expand it.
plugin_installer/plugin_installer.py
+
8
−
1
View file @
c444ff79
...
...
@@ -138,7 +138,14 @@ class PluginInstaller(GajimPlugin):
location
=
posixpath
.
join
(
directory
,
fname
)
uri
=
urlparse
.
urljoin
(
server
,
location
)
log
.
debug
(
'
Fetching {}
'
.
format
(
uri
))
request
=
urllib2
.
urlopen
(
uri
)
ssl_args
=
{}
if
'
cafile
'
in
inspect
.
getargspec
(
urllib2
.
urlopen
).
args
:
log
.
info
(
'
You are using HTTPS CA pinning, very good!
'
)
ssl_args
[
'
cafile
'
]
=
self
.
local_file_path
(
'
DST_Root_CA_X3.pem
'
)
else
:
log
.
warning
(
'
Your python version does not support HTTPS CA pinning
'
)
request
=
urllib2
.
urlopen
(
uri
,
**
ssl_args
)
manifest_buffer
=
io
.
BytesIO
(
request
.
read
())
return
manifest_buffer
...
...
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