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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
caucase
Commits
72b24969
Commit
72b24969
authored
May 17, 2019
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! WIP: ca: Migrate to new registered OID
parent
7ce3a9d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
caucase/ca.py
caucase/ca.py
+6
-7
No files found.
caucase/ca.py
View file @
72b24969
...
...
@@ -431,13 +431,12 @@ class CertificateAuthority(object):
if
auto_signed
!=
_AUTO_SIGNED_PASSTHROUGH
:
# Prevent any caucase extension from being smuggled, especially the
# "auto-signed" one...
policy_list
=
[]
for
policy
in
certificate_policies
.
value
:
if
policy
.
policy_identifier
.
dotted_string
.
startswith
(
utils
.
CAUCASE_OID_TOP
):
continue
policy_list
.
append
(
policy
)
policy_list
=
[
x
for
x
in
certificate_policies
.
value
if
not
x
.
policy_identifier
.
dotted_string
.
startswith
(
utils
.
CAUCASE_OID_TOP
,
)
]
if
auto_signed
==
_AUTO_SIGNED_YES
:
# ...but do add auto-signed extension if we are auto-signing.
policy_list
.
append
(
utils
.
CAUCASE_POLICY_INFORMATION_AUTO_SIGNED
)
...
...
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