Skip to content

Commit

Permalink
fix key encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
phbnf committed Aug 19, 2024
1 parent b176847 commit 20247fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions personalities/sctfe/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ func (cts *CTStorage) AddIssuerChain(ctx context.Context, chain []*x509.Certific
for _, c := range chain {
errG.Go(func() error {
id := sha256.Sum256(c.Raw)
key := make([]byte, 32)
_ = hex.Encode(key, id[:])
key := []byte(hex.EncodeToString(id[:]))
// We first try and see if this issuer cert has already been stored since reads
// are cheaper than writes.
// TODO(phboneff): monitor usage, eventually write directly depending on usage patterns
Expand Down

0 comments on commit 20247fb

Please sign in to comment.