Skip to content

Commit

Permalink
Update build for tomcat
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-ibm committed Mar 15, 2024
1 parent 1a662fd commit f4270a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
cd demo_app && ant && cd ../
cp demo_app/dist/LIBERTY_SecTestWeb.war liberty/
cp demo_app/dist/JBOSS_SecTestWeb.war jboss/
cp demo_app/dist/TOMCAT_SecTestWeb.war tomcat/
- name: Deploy and test Liberty
id: deploy_liberty_integration
Expand Down
6 changes: 4 additions & 2 deletions tomcat/deploy_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# Copyright contributors to the IBM Security Integrations project

# IAG key X500 distinguished name
#KID="/C=AU/ST=QLD/L=Gold Coast/O=IBM/CN=demo-iag-server"
KID="$(openssl x509 -in iag.pem -outform DER | openssl dgst -sha256 -binary | basenc --base64url | sed -e 's/=//' )"
KID="/C=AU/ST=QLD/L=Gold Coast/O=IBM/CN=demo-iag-server"
if [ -f "iag.pem" ]; then
KID="$(openssl x509 -in iag.pem -outform DER | openssl dgst -sha256 -binary | basenc --base64url | sed -e 's/=//' )"
fi

# Create certificates/keys
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:4096 -keyout iag.key -out iag.pem \
Expand Down

0 comments on commit f4270a9

Please sign in to comment.