Overview
The following steps are for testing Certificate Management functionality. Certificate Management is an interface used to simplify the process of creating new certificate and managing certificates within KeyStore and TrustStore. It is divided into three sections - Manage KeyStore, Manage TrustStore and Import Wizard:
- Manage KeyStore: Displays list of available KeyStores from the CONNECT Configuration
- Manage TrustStore: Displays list of available TrustStores from the CONNECT Configuration. Allows user to Import, View and Delete a certificate in TrustStore
- Import Wizard: Allow user to create new certificate and import server certificate, CA root, CA intermediate into KeyStore, TrustStore
Test Environment
- Deploy CONNECT ear and AdminGUI war
- Successfully execute ConnectValidation suite before running AdminGUI test cases
- Browse to http://localhost:8080/CONNECTAdminGUI/
Certificate Management
Expand the Certificate Management from left navigation and execute the following tests:
Manage KeyStore
Test Scenario | Test Steps | Expected Result |
---|---|---|
Manage KeyStore left navigation menu item availability |
|
|
Verify Manage KeyStore page displays with list of all the available KeyStores from the CONNECT configuration |
| Manage KeyStore tab will show as below:
|
Using Keytool or KeyStore Explorer application verify list of certificates from KeyStore match with the list displayed in Manage KeyStore tab |
|
|
View certificate details |
|
|
Verify record selection validation |
|
|
Manage TrustStore
Expand the Certificate Manager from left navigation, select Manage TrustStore, and execute the following tests:
Test Scenario | Test Steps | Expected Results |
---|---|---|
Manage TrustStore left navigation menu item availability |
|
|
Verify Manage TrustStore page displays with list of all the available TrustStores from the CONNECT configuration |
| Manage TrustStore tab will show as below:
|
Using Keytool or KeyStore Explorer application verify list of certificates from cacerts.jks match with the list displayed in Manage TrustStore tab |
|
|
Verify record selection validation |
|
|
View certificate details |
|
|
Verify certificate alias editable |
|
|
Delete certificate from the TrustStore list (i.e. cacerts.jks) |
| Results as below:
|
Verify user not allowed to delete server's public certificate |
| Results as below:
|
Verify user allowed to import any certificate (i.e. root certificate, intermediate certificate, server leaf certificate) into truststore only (i.e. cacerts.jks) |
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
Verify Refresh functionality |
|
|
|
| |
View Chain of Trust record selection validation |
|
|
Verify View Chain of Trust functionality |
|
|
|
| |
|
|
Import Wizard
Import Wizard interface simplify the process of creating new certificate and importing CA certs into CONNECT configuration. A new set of certificates (i.e. KeyStore.jks, TrustStrore.jks) will be created under " //Connect-Properties/ImportWizard/New" folder. This page includes Start, Create Certificate, Certificate Signing Request,CA Providers, Import SSL Certificates tabs.
Start Tab
Test Scenario | Test Steps | Expected Results |
---|---|---|
Import Wizard left navigation menu item availability |
|
|
Verify below on Start tab:
|
| Start tab will show below:
|
| User should be able to create a CSR. | |
| User should be able to go to Import SSL Certificate(s) tab. | |
Verify tabs enable / disable functionality |
|
|
|
|
Create Certificate Tab
Test Scenario | Test Steps | Expected Results |
---|---|---|
Visually verify Create Certificate default screen display |
|
|
Required filed validation |
| UI errors must be present as below: |
Verify Exchange drop down functionality |
|
|
Verify updates in caauthority.properties file reflect Exchange drop down |
|
|
Verify Create Certificate cancel functionality |
|
|
Verify Create Certificate functionality |
|
|
Verify Certificate validity, key size and signature algorithm for newly created certificate |
|
|
Verify navigation from Create Certificate page |
|
|
|
|
Certificate Signing Request Tab
Test Scenario | Test Steps | Expected Results |
---|---|---|
Verify Certificate Signing Request (CSR) functionality | User navigated to CSR tab when:
| Results as below:
|
Verify CSR text populated when user navigated via Start tab → Certificate Signing Request tab |
|
|
Verify user allowed to copy or download CSR text |
|
|
Verify CSR tab cancel functionality |
|
|
Verify navigation from Certificate Signing Request tab |
|
|
CA Provider Tab
Test Scenario | Test Steps | Expected Results |
---|---|---|
Visually verify CA Providers tab default screen display |
|
|
Verify all links displayed from the caauthority.properties file |
|
|
|
| |
Submit CSR (i.e .csr file) to CA Authority and acquire a new SSL certificate. |
|
|
Verify navigation from CA Provider tab |
|
|
|
|
Import SSL Certificate(s)
Test Scenario | Test Steps | Expected Results |
---|---|---|
Visually verify Import SSL Certificates tab default screen display |
|
|
Verify required field validation |
|
|
Verify Clear functionality |
|
|
Verify importing only Server Certificate |
|
|
Verify importing Server Certificate, CA root and CA intermediate validation |
Note: Repeat same scenario without selecting CA root and select CA Intermediate |
|
Verify importing Server Certificate, CA root and CA intermediate |
|
|
Verify complete functionality |
|
|
Verify AdminGUI functions with new certificates |
|
Note: https://connectopensource.atlassian.net/wiki/x/AgCJKQ
|
Verify replacing existing server certificate via Import Wizard |
|
|