Skip to content

Commit 58c23a5

Browse files
authored
Merge pull request #1376 from diogomonica/changing-root-to-p256
Changing root key to P-256
2 parents 3cecced + 5280f0f commit 58c23a5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ca/certificates.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ import (
3737
const (
3838
// Security Strength Equivalence
3939
//-----------------------------------
40-
//| Key-type | ECC | DH/DSA/RSA |
41-
//| Node | 256 | 3072 |
42-
//| Root | 384 | 7680 |
40+
//| ECC | DH/DSA/RSA |
41+
//| 256 | 3072 |
42+
//| 384 | 7680 |
4343
//-----------------------------------
4444

4545
// RootKeySize is the default size of the root CA key
46-
RootKeySize = 384
46+
// It would be ideal for the root key to use P-384, but in P-384 is not optimized in go yet :(
47+
RootKeySize = 256
4748
// RootKeyAlgo defines the default algorithm for the root CA Key
4849
RootKeyAlgo = "ecdsa"
4950
// PassphraseENVVar defines the environment variable to look for the

0 commit comments

Comments
 (0)