mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 10:19:34 +00:00
The official Let's Encrypt boulder code only issues RSA certificates from RSA issuer certificates and only ECDSA certificates from an ECDSA issuer CA. Many people are having issues with this in LabCA. Until we have the option for multiple issuers per root CA and/or multiple CA chains in the GUI of LabCA, use the single issuer CA for both key types.
This commit is contained in:
1
patch.sh
1
patch.sh
@@ -21,6 +21,7 @@ fi
|
||||
$SUDO patch -p1 < $cloneDir/patches/bad-key-revoker_main.patch
|
||||
$SUDO patch -p1 < $cloneDir/patches/boulder-va_main.patch
|
||||
$SUDO patch -p1 < $cloneDir/patches/ca_ca.patch
|
||||
$SUDO patch -p1 < $cloneDir/patches/ca_ca_keytype_hack.patch
|
||||
$SUDO patch -p1 < $cloneDir/patches/ca_crl.patch
|
||||
$SUDO patch -p1 < $cloneDir/patches/cert-checker_main.patch
|
||||
$SUDO patch -p1 < $cloneDir/patches/cmd_config.patch
|
||||
|
||||
21
patches/ca_ca_keytype_hack.patch
Normal file
21
patches/ca_ca_keytype_hack.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git a/ca/ca.go b/ca/ca.go
|
||||
index 739ce53e7..2ccb11969 100644
|
||||
--- a/ca/ca.go
|
||||
+++ b/ca/ca.go
|
||||
@@ -177,10 +177,14 @@ func makeIssuerMaps(issuers []*issuance.Issuer) (issuerMaps, error) {
|
||||
}
|
||||
}
|
||||
if i, ok := issuersByAlg[x509.ECDSA]; !ok || len(i) == 0 {
|
||||
- fmt.Println("WARNING: no ECDSA issuers configured")
|
||||
+ // TODO: LabCA hack!
|
||||
+ issuersByAlg[x509.ECDSA] = issuersByAlg[x509.RSA]
|
||||
+ // fmt.Println("WARNING: no ECDSA issuers configured")
|
||||
}
|
||||
if i, ok := issuersByAlg[x509.RSA]; !ok || len(i) == 0 {
|
||||
- fmt.Println("WARNING: no RSA issuers configured")
|
||||
+ // TODO: LabCA hack!
|
||||
+ issuersByAlg[x509.RSA] = issuersByAlg[x509.ECDSA]
|
||||
+ // fmt.Println("WARNING: no RSA issuers configured")
|
||||
}
|
||||
return issuerMaps{issuersByAlg, issuersByNameID}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user