Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
caucase
Commits
5b22f024
Commit
5b22f024
authored
Jul 14, 2018
by
Vincent Pelletier
Committed by
Vincent Pelletier
Jul 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Check CRL Distribution Points presence on a service certificate.
More realistic than checking server certificate.
parent
7b462d34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
caucase/test.py
caucase/test.py
+8
-7
No files found.
caucase/test.py
View file @
5b22f024
...
...
@@ -1971,17 +1971,18 @@ class CaucaseTest(unittest.TestCase):
address in CRL distribution point extension.
"""
self
.
_stopServer
()
# Force generation of a new server certificate
os
.
unlink
(
self
.
_server_key
)
os
.
unlink
(
self
.
_server_db
)
self
.
_server_netloc
=
'[::1]:8000'
# Would raise
self
.
_caucase_url
=
'http://'
+
self
.
_server_netloc
self
.
_startServer
()
# To retrieve CAS CA crt.
self
.
_runClient
()
# Sanity checks
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
_server_key
))
user_key_path
=
self
.
_createFirstUser
()
service_key
=
self
.
_createAndApproveCertificate
(
user_key_path
,
'service'
,
)
distribution_point
,
=
utils
.
load_certificate
(
utils
.
getCert
(
se
lf
.
_server
_key
),
utils
.
getCert
(
se
rvice
_key
),
[
utils
.
load_ca_certificate
(
x
)
for
x
in
utils
.
getCertList
(
self
.
_client_ca_crt
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment