DefaultConfig returns a default configuration specifying basic key usage and a 1 year expiration time. The key usages chosen are signing, key encipherment, client auth and server auth.
()
| 676 | // usage and a 1 year expiration time. The key usages chosen are |
| 677 | // signing, key encipherment, client auth and server auth. |
| 678 | func DefaultConfig() *SigningProfile { |
| 679 | d := helpers.OneYear |
| 680 | return &SigningProfile{ |
| 681 | Usage: []string{"signing", "key encipherment", "server auth", "client auth"}, |
| 682 | Expiry: d, |
| 683 | ExpiryString: "8760h", |
| 684 | } |
| 685 | } |
| 686 | |
| 687 | // LoadFile attempts to load the configuration file stored at the path |
| 688 | // and returns the configuration. On error, it returns nil. |
no outgoing calls
searching dependent graphs…