Under an existing root¶
If your machines already trust a company root, for example one from Active Directory Certificate Services (AD CS), BastionXP CA can run under it: the company's CA signs BastionXP CA's intermediate as a subordinate CA, and nothing new has to be trusted anywhere.
Steps¶
# 1. Everything but the intermediate certificate, and a CSR for it,
# written to data_dir/intermediate.next.csr (the command prints the
# path). The waiting key is data_dir/intermediate.next.key.
bxp init --config bastionxp-ca.yaml --external-root
# 2. The company's CA signs it as a subordinate CA. With AD CS, on a
# machine that can reach the CA, with the "Subordinate Certification
# Authority" template (this needs a CA administrator):
certreq -submit -attrib "CertificateTemplate:SubCA" intermediate.next.csr bastionxp-ca.crt
# 3. Put it in place, with the company's root CA and, if the certificate
# was signed by an issuing CA rather than the root, that issuing CA
# (repeat --issuing-ca for each level, or give one file with all).
bxp new-intermediate --config bastionxp-ca.yaml --import bastionxp-ca.crt \
--root-ca corp-root.crt --issuing-ca corp-issuing-ca.crt
The import checks that the certificate:
- is for the key waiting in
data_dir, - is a CA that may sign certificates and CRLs,
- chains up to the given root, and
- is valid now.
It refuses anything else and changes nothing. Then bxp serve works as
usual. Every certificate goes out with the full chain, so a machine that
trusts the company root accepts it.
Differences from a BastionXP CA root¶
root.crtis the company root.bxp trustand the fingerprints work with it.- There is no root key on the BastionXP CA side.
- The company's CA decides the intermediate's lifetime:
ca.intermediate_validityis refused in this mode, so nobody believes it took effect. ca.name_constraintscannot be put into the CSR. Ask the company's CA to put constraints into the certificate it issues; BastionXP CA refuses names outside whatever constraints the chain carries.
Replacing the intermediate later¶
The root stays the same, so --root-ca is only needed the first time:
bxp new-intermediate --config bastionxp-ca.yaml --csr # writes data_dir/intermediate.next.csr
# ... have the company CA sign it ...
bxp new-intermediate --config bastionxp-ca.yaml --import bastionxp-ca-ca-2.crt \
--issuing-ca corp-issuing-ca.crt
See Replace the intermediate for what happens to the certificates the old intermediate issued.