Minor updates

This commit is contained in:
世界 committed 2025-02-01 19:49:33 +08:00
1 parent 9b4c11ba95
commit 7f79458b4f
5 files changed
+13 -6

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ func init() {
}
func generateTLSKeyPair(serverName string) error {
privateKeyPem, publicKeyPem, err := tls.GenerateKeyPair(time.Now, serverName, time.Now().AddDate(0, flagGenerateTLSKeyPairMonths, 0))
privateKeyPem, publicKeyPem, err := tls.GenerateCertificate(nil, nil, time.Now, serverName, time.Now().AddDate(0, flagGenerateTLSKeyPairMonths, 0))
if err != nil {
return err
}