chore: update labels

This commit is contained in:
2025-11-24 16:55:16 +01:00
parent fea4c33c24
commit be9b9821f4
3 changed files with 14 additions and 6 deletions

5
.gitignore vendored
View File

@@ -1,2 +1,5 @@
*
!*.*
fyne-cross
Icon.png
Icon.png
*.exe

2
compile_win.sh Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build -ldflags -H=windowsgui

13
main.go
View File

@@ -73,7 +73,7 @@ func main() {
// Certificate Intermediate
var newSectigoSelected bool
caRadio := widget.NewRadioGroup([]string{"New Sectigo (2025+)", "Old Sectigo (2025-)"}, func(selected string) {
caRadio := widget.NewRadioGroup([]string{"New Sectigo (2025-03-22+)", "Old Sectigo (2025-03-22-)"}, func(selected string) {
switch selected {
case "New Sectigo (2025+)":
newSectigoSelected = true
@@ -112,8 +112,11 @@ func main() {
respText, pfxData := integrityCheckAndGo(keyPath, certPath, caCert, rootCert)
log.Println(respText)
grid.SetText(respText)
if pfxData == nil {
log.Println(respText)
grid.SetText(respText)
return
}
// Show Save File dialog immediately
svDialog := dialog.NewFileSave(
@@ -242,9 +245,9 @@ func integrityCheckAndGo(keyPath, certPath, caCertString, caRootString string) (
checkPublicKey(cert) // Print the information about the key
if checkCertKeyPair(cert.PublicKey, key) {
fmt.Println("Private key matches certificate")
log.Println("Private key matches certificate")
} else {
fmt.Println("Private key does NOT match certificate")
return "Private key does NOT match certificate", nil
}
caCertList := []*x509.Certificate{caCert, rootCert}