From f1944f8ff63986afa8f18d54b2bb18dc35aa3546 Mon Sep 17 00:00:00 2001 From: Ch1ffr3punk Date: Thu, 12 Mar 2026 10:03:28 +0100 Subject: Add files via upload --- localization/yubicrypt-de.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'localization/yubicrypt-de.go') diff --git a/localization/yubicrypt-de.go b/localization/yubicrypt-de.go index d72f787..fa6c60b 100644 --- a/localization/yubicrypt-de.go +++ b/localization/yubicrypt-de.go @@ -245,7 +245,7 @@ func (g *GUI) showInfoPopup() { okButton.Importance = widget.HighImportance content := container.NewVBox( - widget.NewLabelWithStyle("yubicrypt v0.1.8", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}), + widget.NewLabelWithStyle("yubicrypt v0.1.9", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}), widget.NewSeparator(), container.NewHBox( layout.NewSpacer(), @@ -359,8 +359,8 @@ func (g *GUI) choosePublicKey() { defer reader.Close() path := reader.URI().Path() - if filepath.Ext(path) != ".pem" { - g.statusLabel.SetText("Fehler: Bitte wählen Sie eine .pem Datei") + if filepath.Ext(path) != ".crt" { + g.statusLabel.SetText("Fehler: Bitte wählen Sie eine .crt Datei") return } @@ -1145,7 +1145,7 @@ func loadRSAPublicKey(filename string) (*rsa.PublicKey, error) { block, _ := pem.Decode(data) if block == nil { - return nil, fmt.Errorf("keine PEM-Daten in der Datei gefunden") + return nil, fmt.Errorf("keine Daten in der Datei gefunden") } switch block.Type { @@ -1188,7 +1188,7 @@ func loadRSAPublicKey(filename string) (*rsa.PublicKey, error) { return pubKey, nil default: - return nil, fmt.Errorf("nicht unterstützter PEM-Typ: %s, erwartet CERTIFICATE, PUBLIC KEY oder RSA PUBLIC KEY", block.Type) + return nil, fmt.Errorf("nicht unterstützter Typ: %s, erwartet CERTIFICATE, PUBLIC KEY oder RSA PUBLIC KEY", block.Type) } } -- cgit v1.2.3