Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
apply suggestion
  • Loading branch information
jiuker committed Jul 18, 2024
1 parent 1e95bd4 commit d83aac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ func sidekickMain(ctx *cli.Context) {
}
fingerprint := sha256.Sum256(certificates.Certificate[0])
console.Printf("\nCertificate: % X\n", fingerprint[:len(fingerprint)/2])
console.Printf(" % X", fingerprint[len(fingerprint)/2:])
console.Printf(" % X", fingerprint[len(fingerprint)/2:])
var publicKeyDER []byte
switch privateKey := certificates.PrivateKey.(type) {
case *ecdsa.PrivateKey:
Expand All @@ -1129,6 +1129,7 @@ func sidekickMain(ctx *cli.Context) {
}
publicKey := sha256.Sum256(publicKeyDER)
console.Println("\nPublic Key: " + base64.StdEncoding.EncodeToString(publicKey[:]))
console.Println()
globalTLSCert.Store(&cert)

tlsConfig := &tls.Config{
Expand Down

0 comments on commit d83aac3

Please sign in to comment.