Browse Source

Explicitly set zero length path constraint (#5)

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
Patrick Uiterwijk 6 years ago
parent
commit
222b4f1035
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main.go

+ 2 - 0
main.go

@@ -224,6 +224,8 @@ func (m *mkcert) newCA() {
 
 
 		BasicConstraintsValid: true,
 		BasicConstraintsValid: true,
 		IsCA: true,
 		IsCA: true,
+		MaxPathLen: 0,
+		MaxPathLenZero: true,
 	}
 	}
 
 
 	pub := priv.PublicKey
 	pub := priv.PublicKey