chore: update labels
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,2 +1,5 @@
|
||||
*
|
||||
!*.*
|
||||
fyne-cross
|
||||
Icon.png
|
||||
Icon.png
|
||||
*.exe
|
||||
|
||||
2
compile_win.sh
Normal file
2
compile_win.sh
Normal 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
13
main.go
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user