added createrootcertificateifnotexists
Build / Build (push) Successful in 19s

This commit is contained in:
wt committed 2025-07-21 22:11:04 +07:00
1 parent 39c27b0de3
commit e6526fb780
8 files changed
+169 -114

No files matched your search

-1
View File
@@ -39,7 +39,6 @@ func LoadRootCertAndKey(certFile, keyFile, password string) (*x509.Certificate,
if block == nil {
return nil, nil, errors.New("failed to parse CA key PEM")
}
fmt.Print(block.Type)
// Декодирование ключа с паролем
decryptedKey, err := pkcs8.ParsePKCS8PrivateKey(block.Bytes, []byte(password))
if err != nil {