Functional Testing
Test CA Creation
-
A test CA named
UtimacoTestCAcan be created by navigating to CA Functions > Certificate Authorities and selecting Add.
Adding a test Certificate Authority.
-
Enter
UtimacoTestCAas the CA Name and selectUtimaco-HSM-Testas the Crypto Token. Map the HSM keys to the corresponding CA key purposes as follows:
-
-
defaultKey→defaultKey -
certSignKey→signKey -
crlSignKey→signKey -
testKey→testKey
-
Configuring UtimacoTestCA
-
After completing the configuration, create the CA and verify that
UtimacoTestCAis listed with the status Active.
Verifying the UtimacoTestCA
Server Certificate Profile Creation
-
A certificate profile named
UtimacoTestServerCertificatecan be created for testing by navigating to CA Functions > Certificate Profiles and selecting Add. Alternatively, an existing certificate profile can be cloned. Configure theUtimacoTestServerCertificateprofile and selectUtimacoTestCAas the Available CA.
Configuring UtimacoTestServerCertificate.
-
Verify that
UtimacoTestServerCertificateis listed in the available certificate profiles.
Verifying UtimacoTestServerCertificate.
End Entity Profile Creation
End Entity Profile defines which profile combination can be used for enrollment.
-
A new End Entity Profile
UtimacoTestEndEntitycan 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. ConfigureUtimacoTestEndEntityto useUtimacoTestServerCertificateas the Certificate Profile,UtimacoTestCAas the CA, and User Generated as the token type.
Configuring UtimacoTestEndEntity
-
After completing the configuration, verify that
UtimacoTestEndEntityis listed in the available End Entity Profiles.
Verifying UtimacoTestEndEntity
CSR Generation
-
Generate a test CSR with the Common Name (CN)
testserver.example.comusing the following OpenSSL command:
openssl req -new -newkey rsa:2048 -nodes -keyout testserver.key -out testserver.csr -subj "/CN=testserver.example.com"
-
Verify that
testserver.csrandtestserver.keyare generated successfully.
Generating the test CSR
EJBCA Certificate Issuance Through ‘UtimacoTestCA’
-
Navigate to RA Web > Make New Request to request a new certificate.
Creating a new certificate request
-
Select
UtimacoTestEndEntityas the Certificate Type and upload the generated CSR. Configure the request to useUtimacoTestServerCertificateandUtimacoTestCA. After the certificate is issued, download the certificate in PEM format.
Issuing the test server certificate
-
The certificate is issued by
UtimacoTestCA, whosecertSignKeyis mapped to thesignKeyavailable through the HSM-backed crypto token.
Issued Certificate Content Verification
-
Verify the contents of
testserver.example.com.pem, including the subject, issuer, serial number, and validity period, using the following command:
Verifying the issued certificate details
-
Verify the certificate signature algorithm and Subject Alternative Name (SAN) using the following command:
Verifying the certificate attributes
-
The verification confirms that the certificate was issued by
UtimacoTestCAand contains the expected certificate attributes.
Verification of CSR Public Key and Issued Public Key
-
Extract the CSR public key and the issued certificate's public key. Compare both public keys.
Verifying the CSR and issued certificate public keys
-
This confirms that EJBCA issued the certificate for exactly the same public key supplied by the requester in the CSR.
CA Signature Verification
-
Navigate to RA Web > CA Certificates and CRLs and download the
UtimacoTestCAcertificate in PEM format.
Downloading the UtimacoTestCA certificate.
-
Verify the issued certificate against the CA's public key using
openssl verify.
openssl verify -CAfile UtimacoTestCA.pem testserver.example.com.pem
Verifying the CA signature