Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
websearch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
KIT
KIT-CA
websearch
Commits
9f1cbbc6
Verified
Commit
9f1cbbc6
authored
2 weeks ago
by
Heiko Reese
Browse files
Options
Downloads
Patches
Plain Diff
fix: function IsUserHarica now uses raw issuer instead of (wrong) string representation
parent
268cd49c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#420966
failed
2 weeks ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
searchablecert.go
+8
-6
8 additions, 6 deletions
searchablecert.go
with
8 additions
and
6 deletions
searchablecert.go
+
8
−
6
View file @
9f1cbbc6
...
...
@@ -70,13 +70,12 @@ var SectigoPersonalFilter = func(c *x509.Certificate) bool {
// IsUserHarica returns true if the certificate is a user certificate issued by HARICA
var
IsUserHarica
=
func
(
c
*
x509
.
Certificate
)
bool
{
haricaIssuers
:=
[]
string
{
"C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA Client RSA Root CA 2021"
,
"C=GR, O=Hellenic Academic and Research Institutions CA, CN=GEANT S/MIME RSA 1"
,
"C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA Client ECC Root CA 2021"
,
"C=GR, O=Hellenic Academic and Research Institutions CA, CN=GEANT S/MIME ECC 1"
,
for
_
,
rawIssuer
:=
range
CertificateIssuer
[
CAIdentifierHARICA
]
{
if
bytes
.
Contains
(
c
.
RawIssuer
,
rawIssuer
)
{
return
true
}
}
return
slices
.
Contains
(
haricaIssuers
,
c
.
Issuer
.
String
())
return
false
}
var
NoCommonNameFilter
=
func
(
c
*
x509
.
Certificate
)
bool
{
...
...
@@ -522,6 +521,9 @@ func CertToSearchable(c *x509.Certificate) SearchableCert {
}
// Sorting order: Group > User > Ext > Server > Pseudonym
//if strings.Contains(cert.Subject, "carsten.thuemmel@kit.edu") && strings.Contains(cert.Issuer, "Hellen") {
// fmt.Println("XXX")
//}
switch
{
case
CertificateStats
.
FilterIsPseudonym
(
c
)
:
cert
.
Type
=
Pseudonym
...
...
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