Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jsha committed Jan 30, 2025
1 parent ce2a42d commit 6b3e28a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ca/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func makeCertificateProfilesMap(defaultName string, profiles map[string]*issuanc
profilesByName[name] = &withID
_, found := profilesByHash[hash]
if found {
return certProfilesMaps{}, fmt.Errorf("duplicate certificate profile hash %d", profile.Hash())
return certProfilesMaps{}, fmt.Errorf("duplicate certificate profile hash %d", hash)
}
profilesByHash[hash] = &withID
}
Expand Down
7 changes: 4 additions & 3 deletions issuance/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
// The CA uses a hash of the gob encoding of ProfileConfig to ensure precert
// and final cert issuance use the exact same profile settings. Gob encodes all
// fields, including zero values, which means adding fields immediately changes all
// hashes, causing a deployability problem.
// hashes, causing a deployability problem. It also encodes the struct name.
//
// To solve the deployability problem, we're switching to ASN.1 encoding. However,
// while deploying that we still need the ability to hash old configs the same way
Expand Down Expand Up @@ -119,12 +119,13 @@ type ProfileConfigNew struct {
OmitClientAuth bool `asn1:"tag:4,optional"`
// OmitSKID causes the Subject Key Identifier extension to be omitted.
OmitSKID bool `asn1:"tag:5,optional"`
// IncludeCRLDistributionPoints causes the CRLDistributionPoints extension to
// be added to all certificates issued by this profile.
IncludeCRLDistributionPoints bool `asn1:"tag:8,optional"`

MaxValidityPeriod config.Duration `asn1:"tag:6,optional"`
MaxValidityBackdate config.Duration `asn1:"tag:7,optional"`

IncludeCRLDistributionPoints bool `asn1:"tag:8,optional"`

// LintConfig is a path to a zlint config file, which can be used to control
// the behavior of zlint's "customizable lints".
LintConfig string `asn1:"tag:9,optional"`
Expand Down

0 comments on commit 6b3e28a

Please sign in to comment.