fix: localectl
build-and-release / release (push) Successful in 2m38s

This commit is contained in:
2026-06-22 22:22:36 +02:00
parent ac196e720b
commit 9587d11e21
5 changed files with 35 additions and 24 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
package main
import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
@@ -24,7 +25,7 @@ func serverCert(certPath, keyPath string) (tls.Certificate, error) {
}
func generateSelfSignedCert() (tls.Certificate, error) {
priv, err := rsa.GenerateKey(rand.Reader, 2048)
priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
if err != nil {
return tls.Certificate{}, err
}