forked from projectdiscovery/simplehttpserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.go
More file actions
21 lines (18 loc) · 850 Bytes
/
options.go
File metadata and controls
21 lines (18 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package sslcert
import "time"
type Options struct {
Host string // Comma-separated hostnames and IPs to generate a certificate for")
Organization string
ValidFrom string // Creation date formatted as Jan 1 15:04:05 2011
ValidFor time.Duration // 365*24*time.Hour Duration that certificate is valid for
IsCA bool // whether this cert should be its own Certificate Authority
RSABits int // 2048 Size of RSA key to generate. Ignored if --ecdsa-curve is set
EcdsaCurve string // ECDSA curve to use to generate a key. Valid values are P224, P256 (recommended), P384, P521
Ed25519Key bool // Generate an Ed25519 key
}
var DefaultOptions = Options{
ValidFor: time.Duration(365 * 24 * time.Hour),
IsCA: false,
RSABits: 2048,
Organization: "Acme Co",
}