feat: fix cert's ES options

This commit is contained in:
Yang Luo
2024-03-10 19:30:05 +08:00
parent e4e225db32
commit e5da57a005
5 changed files with 31 additions and 47 deletions

View File

@ -83,7 +83,7 @@ func generateRsaKeys(bitSize int, shaSize int, expireInYears int, commonName str
return string(certPem), string(privateKeyPem), nil
}
func generateEsKeys(bitSize int, shaSize int, expireInYears int, commonName string, organization string) (string, string, error) {
func generateEsKeys(shaSize int, expireInYears int, commonName string, organization string) (string, string, error) {
var curve elliptic.Curve
switch shaSize {
case 256: