Skip to content

Commit

Permalink
Replace pki client-cert-import
Browse files Browse the repository at this point in the history
The CI tests has been updated to use pki nss-cert-import and
pki pkcs12-import commands to import certs and PKCS #12 files.
  • Loading branch information
edewata committed Jul 9, 2024
1 parent f04ef49 commit 758327a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
needs: wait-for-build
runs-on: ubuntu-latest
env:
SHARED: /tmp/workdir/pki
SHARED: /tmp/workdir/jss
steps:
- name: Clone repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
needs: wait-for-build
runs-on: ubuntu-latest
env:
SHARED: /tmp/workdir/pki
SHARED: /tmp/workdir/jss
steps:
- name: Clone repository
uses: actions/checkout@v4
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/pki-ca-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ jobs:
- name: Initialize PKI client
run: |
docker exec pki pki-server cert-export ca_signing --cert-file ca_signing.crt
docker exec pki pki client-cert-import ca_signing --ca-cert ca_signing.crt
docker exec pki pki nss-cert-import \
--cert ca_signing.crt \
--trust CT,C,C \
ca_signing
docker exec pki pki info
- name: Check CA certs
Expand All @@ -86,7 +91,7 @@ jobs:
- name: Check CA admin
run: |
docker exec pki pki client-cert-import \
docker exec pki pki pkcs12-import \
--pkcs12 /root/.dogtag/pki-tomcat/ca_admin_cert.p12 \
--pkcs12-password Secret.123
docker exec pki pki -n caadmin ca-user-show caadmin
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pki-tps-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,16 @@ jobs:
- name: Check TPS admin
run: |
docker exec pki pki-server cert-export ca_signing --cert-file ca_signing.crt
docker exec pki pki client-cert-import ca_signing --ca-cert ca_signing.crt
docker exec pki pki nss-cert-import \
--cert ca_signing.crt \
--trust CT,C,C \
ca_signing
docker exec pki pki pkcs12-import \
--pkcs12 /root/.dogtag/pki-tomcat/ca_admin_cert.p12 \
--pkcs12-password Secret.123
docker exec pki pki -n caadmin tps-user-show tpsadmin
- name: Set up TPS authentication
Expand Down

0 comments on commit 758327a

Please sign in to comment.