Skip to content

Commit 916c75c

Browse files
committed
Move to v2 APIs
1 parent f0e1d65 commit 916c75c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/kra-oaep-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ jobs:
111111
- name: Verify CAInfo
112112
run: |
113113
docker exec pki curl -k https://pki.example.com:8443/ca/v2/info | python -m json.tool > info
114-
echo -n '{"ArchivalMechanism":"keywrap","EncryptionAlgorithm":"AES/CBC/PKCS5Padding","KeyWrapAlgorithm":"AES KeyWrap/Padding","RsaPublicKeyWrapAlgorithm":"RSA_OAEP","CaRsaPublicKeyWrapAlgorithm":"RSA_OAEP","Attributes":{"Attribute":[]}}' | python -m json.tool > expectedInfo
114+
echo -n '{"ArchivalMechanism":"keywrap","EncryptionAlgorithm":"AES/CBC/PKCS5Padding","KeyWrapAlgorithm":"AES KeyWrap/Padding","RsaPublicKeyWrapAlgorithm":"RSA_OAEP","CaRsaPublicKeyWrapAlgorithm":"RSA_OAEP","Attributes":{"Attribute":[]}}' | python -m json.tool > expectedInfo
115115
diff expectedInfo info
116116
117117
- name: Verify KRAInfo
118118
run: |
119-
docker exec pki curl -k https://pki.example.com:8443/kra/rest/info > info
120-
echo -n '{"ArchivalMechanism":"keywrap","RecoveryMechanism":"keywrap","EncryptionAlgorithm":"AES/CBC/PKCS5Padding","WrapAlgorithm":"AES KeyWrap/Padding","RsaPublicKeyWrapAlgorithm":"RSA_OAEP","Attributes":{"Attribute":[]}}' > expectedInfo
119+
docker exec pki curl -k https://pki.example.com:8443/kra/rest/info | python -m json.tool > info
120+
echo -n '{"ArchivalMechanism":"keywrap","RecoveryMechanism":"keywrap","EncryptionAlgorithm":"AES/CBC/PKCS5Padding","WrapAlgorithm":"AES KeyWrap/Padding","RsaPublicKeyWrapAlgorithm":"RSA_OAEP","Attributes":{"Attribute":[]}}' | python -m json.tool > expectedInfo
121121
diff expectedInfo info
122122
123123
- name: Run PKI healthcheck

.github/workflows/kra-standalone-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
> >(tee stdout) 2> >(tee stderr >&2) || true
7676
7777
# REST API should not return security domain info
78-
echo "PKIException: Not Found" > expected
78+
echo "ResourceNotFoundException: Security domain not available" > expected
7979
diff expected stderr
8080
8181
- name: Check CA admin

.github/workflows/ocsp-standalone-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
> >(tee stdout) 2> >(tee stderr >&2) || true
7777
7878
# REST API should not return security domain info
79-
echo "PKIException: Not Found" > expected
79+
echo "ResourceNotFoundException: Security domain not available" > expected
8080
diff expected stderr
8181
8282
- name: Check CA admin

base/tomcat-9.0/conf/Catalina/localhost/rewrite.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ RewriteRule ^/acme/revoke-cert$ /acme/v1/revoke-cert
1818
RewriteRule ^/.well-known/est/(.*)$ /est/v1/$1
1919

2020
# REST APIs
21-
RewriteRule ^/(pki|ca|tps|tks|ocsp|kra)/rest/(.*)$ /$1/v1/$2
21+
RewriteRule ^/(pki|ca|tps|tks|ocsp|kra)/rest/(.*)$ /$1/v2/$2

0 commit comments

Comments
 (0)