Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Dec 9, 2024
1 parent e8c59b9 commit 2c18f8f
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 212 deletions.
8 changes: 4 additions & 4 deletions connect/connect-ftps-sink/ftps-sink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
source ${DIR}/../../scripts/utils.sh

cd ${DIR}/security
log "🔐 Generate keys and certificates used for SSL"
docker run -u0 --rm -v $PWD:/tmp ${CP_CONNECT_IMAGE}:${CONNECT_TAG} bash -c "/tmp/certs-create.sh > /dev/null 2>&1 && chown -R $(id -u $USER):$(id -g $USER) /tmp/"
cd ${DIR}
cd ../../connect/connect-ftps-sink/security
playground tools certs-create --output-folder "$PWD" --container ftps-server
docker run --quiet --rm -v $PWD:/tmp alpine/openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /tmp/vsftpd.pem -out /tmp/vsftpd.pem -config /tmp/cert_config -reqexts 'my server exts'
cd -

if [[ "$(uname)" != "Darwin" ]]
then
Expand Down
9 changes: 0 additions & 9 deletions connect/connect-ftps-sink/security/certs-clean.sh

This file was deleted.

78 changes: 0 additions & 78 deletions connect/connect-ftps-sink/security/certs-create.sh

This file was deleted.

14 changes: 0 additions & 14 deletions connect/connect-ftps-sink/security/certs-verify.sh

This file was deleted.

1 change: 0 additions & 1 deletion connect/connect-ftps-sink/security/kafkajks.txt

This file was deleted.

9 changes: 4 additions & 5 deletions connect/connect-ftps-source/ftps-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
source ${DIR}/../../scripts/utils.sh

cd ${DIR}/security
log "🔐 Generate keys and certificates used for SSL"
docker run -u0 --rm -v $PWD:/tmp ${CP_CONNECT_IMAGE}:${CONNECT_TAG} bash -c "/tmp/certs-create.sh > /dev/null 2>&1 && chown -R $(id -u $USER):$(id -g $USER) /tmp/"
cd ${DIR}

cd ../../connect/connect-ftps-source/security
playground tools certs-create --output-folder "$PWD" --container ftps-server
docker run --quiet --rm -v $PWD:/tmp alpine/openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /tmp/vsftpd.pem -out /tmp/vsftpd.pem -config /tmp/cert_config -reqexts 'my server exts'
cd -

if [[ "$(uname)" != "Darwin" ]]
then
Expand Down
9 changes: 0 additions & 9 deletions connect/connect-ftps-source/security/certs-clean.sh

This file was deleted.

78 changes: 0 additions & 78 deletions connect/connect-ftps-source/security/certs-create.sh

This file was deleted.

14 changes: 0 additions & 14 deletions connect/connect-ftps-source/security/certs-verify.sh

This file was deleted.

0 comments on commit 2c18f8f

Please sign in to comment.