Skip to content

Commit

Permalink
Merge pull request #276 from rdnovell/master
Browse files Browse the repository at this point in the history
Add modules for cert installation and removal
  • Loading branch information
luck3y committed Aug 1, 2023
2 parents 104dfbe + 9a242d1 commit d7bdc15
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jboss/container/eap/jdk-cert-remove/configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
# Configure module
set -e

# Download the root certificate and update the certificates.
rm -rf /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt
update-ca-trust
7 changes: 7 additions & 0 deletions jboss/container/eap/jdk-cert-remove/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
schema_version: 1
name: jboss.container.eap.jdk-cert-remove
version: '1.0'
description: "JBoss Enterprise Application Platform remove root certificates for JVM"

execute:
- script: configure.sh
7 changes: 7 additions & 0 deletions jboss/container/eap/jdk-cert/configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
# Configure module
set -e

# Download the root certificate and update the certificates.
curl https://password.corp.redhat.com/RH-IT-Root-CA.crt -o /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt
update-ca-trust
7 changes: 7 additions & 0 deletions jboss/container/eap/jdk-cert/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
schema_version: 1
name: jboss.container.eap.jdk-cert
version: '1.0'
description: "JBoss Enterprise Application Platform setup root certificates for JVM"

execute:
- script: configure.sh

0 comments on commit d7bdc15

Please sign in to comment.