Skip to main content
Skip table of contents

Creating an Issuing CA Signed by an External Root

This page describes a basic workflow for creating an X509 Issuing CA, signed by a Root CA on a different machine.

For more general information on managing CAs, see Managing CAs and for conceptional information, see Certificate Authority Overview.

Create Issuing CA

To create the CA in the EJBCA CA UI, do the following:

  1. Click Certification Authorities under CA Functions to open the Manage Certificate Authorities page.
  2. In the Add CA field, specify a name for the CA and click Create.

  3. Next, on the Create CA page, set Subject DN and Issuer:
    • Subject DN: Specify the subject DN for the CA.
    • Signed by: Select External CA as the signer. Note that the fields for Certificate Profile, Validity, SAN, and Certificate Policy OID are disabled since these values are set by the issuer. 
  4. Optionally configure Approvals/Dual Access Control.
    If you want to have several trusted administrators sign off on the issuance of a new CA certificate, configure Approval Profiles in the Approval Settings section.
  5. Next, create a Certificate Signing Request.
    As the final step on the Sub CA instance for now, create a Certificate Signing Request (CSR) to the Root CA to get this CA's certificate signed. 

    If you haven't already added the Root as an external CA, you here have the option to upload the Root's certificate as well. If there is a deeper hierarchy between this CA and the Root, you need to upload the whole chain. 
    Click Make Certificate Request to generate the CSR, which will allow you to copy it at text, download it in BASE64 format (PEM) or as a binary file (DER). 

  6. Click Create at the bottom of the page to finalize the CA.

On the Manage Certificate Authorities page, notice that the Issuing CA is now created and has the status Waiting for Certificate Response, which means that it won't be able to issue certificates, sign CRLs or reply to OCSP requests until the keys have been signed. 


Sign CA Key Pair

Returning to the Root Instance, you will now sign the Issuing CA's key pair by issuing a certificate for it.

The following instructions require the following profiles:

For more information on the profiles, see Certificate Profiles Operations and End Entity Profiles Operations.

To sign the Issuing CA's key pair by issuing a certificate for it, do the following:

  1. On the Root CA instance, select the RA Web menu option and click Enroll New Certificate. From the Root CA's point of view, the Issuing CA is simply another end entity.

  2. Select the correct End Entity Profile and Certificate Profile (if the End Entity Profile allows more than one), and the correct CA. Then choose the option (if available) Provided by user to indicate that the key pair is not to be generated on the Root, and then either paste or upload the CSR.

  3. Click Upload CSR to enable reading the CSR from the Issuing CA and allowing you to review one last time before enrollment and issuance. The Username you are asked to provide is mainly to bind the generated end entity to a physical identity.

  4. The certificate is now issued. Click one of the Download buttons to download the certificate in your preferred format.

Read Certificate Response on Issuing CA

To read the Certificate Response on the issuing CA, do the following:

  1. Return to the Issuing CA instance and click Certification Authorities under CA Functions to open the Manage Certificate Authorities page.
  2. Select your CA in the list and click Edit CA.
  3. Scroll down to the section Externally signed CA creation/renewal. Under Step 2 - Import Certificate, click Choose file to upload the certificate you just downloaded from the Root, and then click Receive Certificate Response.
  4. Your Issuing CA is now fully signed and online and listed as Active in the list of Certificate Authorities list.

Create CA Signed by External CA Using Command Line Interface (CLI)

Alternatively, you can create the CA signed by an external CA using the Command Line Interface (CLI).

  1. Create the CA generating a CSR.
    (warning) Note that the Crypto token password is set to foo123:

    BASH
    $ bin/ejbca.sh ca init CaSignedByExteral "CN=This CA is Signed by an external CA" soft foo123 secp256r1 ECDSA 365 null SHA256withECDSA --signedby External -externalcachain chain.pem

    The file chain.pem contains the certificate chain of the external CA, as described above. Running the above command, a CSR named CaSignedByExteral_csr.der is saved to your disk, containing a PKCS#10 CSR in binary format. Send the CSR to the external CA and get the signed sub CA certificate returned back.

  2. Import the sub CA certificate, activating your CA:

    BASH
    $ bin/ejbca.sh ca importcacert CaSignedByExteral subcacertificate.pem
  3. The file subcacertificate.pem contains the received sub CA certificate.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.