chore: Remove extra code.

This commit is contained in:
imterah 2024-10-24 11:43:47 -04:00
parent e527413faf
commit 86ad3e174f
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
2 changed files with 1 additions and 13 deletions

View file

@ -391,7 +391,7 @@ func signCert(cCtx *cli.Context) error {
}
isTrusted, err := signingclient.IsDomainTrusted(conn, keyFingerprint, domainList)
fmt.Printf("is certificate trusted: %t\n", isTrusted)
fmt.Printf("Certificate trust status: %t\n", isTrusted)
if !isTrusted {
os.Exit(1)

View file

@ -84,41 +84,29 @@ func (signServer *BismuthSigningServer) connHandler(conn net.Conn, metadata *ser
// This is probably a bit too big, but I'd like to air on the side of caution here...
keyFingerprintLength := make([]byte, 2)
fmt.Println("keyFingerLen")
if _, err := conn.Read(keyFingerprintLength); err != nil {
return err
}
keyFingerprintBytes := make([]byte, binary.BigEndian.Uint16(keyFingerprintLength))
fmt.Println("keyFingerBytes")
if _, err := conn.Read(keyFingerprintBytes); err != nil {
return err
}
keyFingerprint := hex.EncodeToString(keyFingerprintBytes)
serverDomainListLength := make([]byte, 2)
fmt.Println("serverDomainListLen")
if _, err := conn.Read(serverDomainListLength); err != nil {
return err
}
serverDomainListBytes := make([]byte, binary.BigEndian.Uint16(serverDomainListLength))
fmt.Println("serverDomainList")
fmt.Printf("len: %d\n", binary.BigEndian.Uint16(serverDomainListLength))
if _, err := conn.Read(serverDomainListBytes); err != nil {
return err
}
fmt.Println("done")
serverDomainList := strings.Split(string(serverDomainListBytes), "\n")
// We can't trust anything if they aren't advertising any domains/IPs