Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wile Coyote
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Geant DevOps
Wile Coyote
Commits
aaf3782d
Unverified
Commit
aaf3782d
authored
1 month ago
by
Max Adamo
Browse files
Options
Downloads
Patches
Plain Diff
remove unnecessary comment
parent
66aef577
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wile_coyote/bin/cert2json
+0
-1
0 additions, 1 deletion
wile_coyote/bin/cert2json
with
0 additions
and
1 deletion
wile_coyote/bin/cert2json
+
0
−
1
View file @
aaf3782d
...
@@ -46,7 +46,6 @@ def inspect_certificate(cert):
...
@@ -46,7 +46,6 @@ def inspect_certificate(cert):
serial_raw
=
f
'
{
cert
.
serial_number
:
x
}
'
.
upper
()
serial_raw
=
f
'
{
cert
.
serial_number
:
x
}
'
.
upper
()
if
len
(
serial_raw
)
%
2
:
if
len
(
serial_raw
)
%
2
:
serial_raw
=
f
'
0
{
serial_raw
}
'
serial_raw
=
f
'
0
{
serial_raw
}
'
# inserting colon after every X chars https://stackoverflow.com/a/30919497/3151187
serial
=
'
:
'
.
join
(
serial_raw
[
i
:
i
+
2
]
for
i
in
range
(
0
,
len
(
serial_raw
),
2
))
serial
=
'
:
'
.
join
(
serial_raw
[
i
:
i
+
2
]
for
i
in
range
(
0
,
len
(
serial_raw
),
2
))
san
=
cert
.
extensions
.
get_extension_for_class
(
x509
.
SubjectAlternativeName
)
san
=
cert
.
extensions
.
get_extension_for_class
(
x509
.
SubjectAlternativeName
)
san_names
=
san
.
value
.
get_values_for_type
(
x509
.
DNSName
)
san_names
=
san
.
value
.
get_values_for_type
(
x509
.
DNSName
)
...
...
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