Auto Light Dark
Auto Light Dark

Verification and Testing

Functional Testing

Test CA Creation 

  1. A test CA named UtimacoTestCA can be created by navigating to CA Functions > Certificate Authorities and selecting Add. 

03_01_existing_CA-20261123-051841.png


Adding a test Certificate Authority.

  1. Enter UtimacoTestCA as the CA Name and select Utimaco-HSM-Test as the Crypto Token. Map the HSM keys to the corresponding CA key purposes as follows:

    • defaultKey → defaultKey

    • certSignKey → signKey

    • crlSignKey → signKey

    • testKey → testKey

03_02_EJBCA Administration.png

Configuring UtimacoTestCA

  1. After completing the configuration, create the CA and verify that UtimacoTestCA is listed with the status Active.

03_03_newCa.png


Verifying the UtimacoTestCA

Server Certificate Profile Creation 

  1. A certificate profile named UtimacoTestServerCertificate can be created for testing by navigating to CA Functions > Certificate Profiles and selecting Add. Alternatively, an existing certificate profile can be cloned. Configure the UtimacoTestServerCertificate profile and select UtimacoTestCA as the Available CA.

03_04_Certificate_Profile.png

Configuring UtimacoTestServerCertificate.

  1. Verify that UtimacoTestServerCertificate is listed in the available certificate profiles.

03_05_newCertificate_Profile.png

Verifying UtimacoTestServerCertificate.

End Entity Profile Creation 

End Entity Profile defines which profile combination can be used for enrollment. 

  1. A new End Entity Profile UtimacoTestEndEntity can be created for testing from the path RA Functions -> End Entity Profiles. A New End Entity profile can be created using the Add option or can be cloned from an existing profile. Configure UtimacoTestEndEntity to use UtimacoTestServerCertificate as the Certificate Profile, UtimacoTestCA as the CA, and User Generated as the token type.

03_06_End Entity Profile.png

Configuring UtimacoTestEndEntity

  1. After completing the configuration, verify that UtimacoTestEndEntity is listed in the available End Entity Profiles.

03_07_newEndEntityProfile.png

Verifying UtimacoTestEndEntity

CSR Generation 

  1. Generate a test CSR with the Common Name (CN) testserver.example.com using the following OpenSSL command: 

openssl req -new  -newkey rsa:2048 -nodes -keyout testserver.key -out testserver.csr -subj "/CN=testserver.example.com" 
  1. Verify that testserver.csr and testserver.key are generated successfully.

03_08_generate_CSR.png

Generating the test CSR

EJBCA Certificate Issuance Through ‘UtimacoTestCA’ 

  1. Navigate to RA Web > Make New Request to request a new certificate.

03_09_MakeNewRequest_UI.png

Creating a new certificate request

  1. Select UtimacoTestEndEntity as the Certificate Type and upload the generated CSR. Configure the request to use UtimacoTestServerCertificate and UtimacoTestCA. After the certificate is issued, download the certificate in PEM format.

03_10_issued_certificate.png


Issuing the test server certificate

  1. The certificate is issued by UtimacoTestCA, whose certSignKey is mapped to the signKey available through the HSM-backed crypto token. 

Issued Certificate Content Verification  

  1. Verify the contents of testserver.example.com.pem, including the subject, issuer, serial number, and validity period, using the following command:

03_11_pem-verification.png

Verifying the issued certificate details

  1. Verify the certificate signature algorithm and Subject Alternative Name (SAN) using the following command:

03_12_pem-verification2.png


Verifying the certificate attributes

  1. The verification confirms that the certificate was issued by UtimacoTestCA and contains the expected certificate attributes.

Verification of CSR Public Key and Issued Public Key 

  1. Extract the CSR public key and the issued certificate's public key. Compare both public keys. 

03_13_CSR_pubkey_verification.png


Verifying the CSR and issued certificate public keys

  1. This confirms that EJBCA issued the certificate for exactly the same public key supplied by the requester in the CSR. 

CA Signature Verification 

  1. Navigate to RA Web > CA Certificates and CRLs and download the UtimacoTestCA certificate in PEM format.

03_14_CACertificates.png

Downloading the UtimacoTestCA certificate.

  1. Verify the issued certificate against the CA's public key using openssl verify.

openssl verify -CAfile UtimacoTestCA.pem testserver.example.com.pem 
03_15_certificates_CA_sig_verification.png


Verifying the CA signature