Skip to content

Commit 8bd8e86

Browse files
Feed openssl.cnf.in when generating certs
1 parent 060c080 commit 8bd8e86

File tree

8 files changed

+25
-10
lines changed

8 files changed

+25
-10
lines changed

selenium/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ suites/screens/*
77
test/oauth/*/h2/*.trace.db
88
test/oauth/*/h2/*.lock.db
99
*/target/*
10+
tls-gen
11+
test/oauth/*/*.pem
12+
test/oauth/*/*.p12

selenium/bin/suite_template

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,19 @@ do_generate-ca-server-client-kpi() {
398398

399399
CUR_DIR=$(pwd)
400400
cd $ROOT/tls-gen/basic
401+
cp openssl.cnf openssl.cnf.bak
402+
if [ -f "$FOLDER/openssl.cnf.in" ]; then
403+
cp $FOLDER/openssl.cnf.in >> openssl.cnf
404+
fi
405+
if [[ ! -z "${DEBUG}" ]]; then
406+
print "Used this openssl.conf"
407+
cat openssl.cnf
408+
fi
401409
make CN=$NAME
402410
#make PASSWORD=foobar
403-
make verify
404-
make info
411+
#make verify
412+
#make info
413+
cp openssl.cnf.bak openssl.cnf
405414
cd $CUR_DIR
406415

407416
cp $ROOT/tls-gen/basic/result/ca_certificate.pem $FOLDER/ca_${NAME}_certificate.pem
@@ -456,13 +465,13 @@ elif [[ "$COMMAND" == "stop-rabbitmq" ]]
456465
fi
457466
}
458467
determine_required_components_including_rabbitmq() {
459-
if [[ "$@" != *"rabbitmq"* ]]; then
460-
REQUIRED_COMPONENTS+=("rabbitmq")
461-
fi
462468
for (( i=1; i<=$#; i++)) {
463469
eval val='$'$i
464470
REQUIRED_COMPONENTS+=( "$val" )
465471
}
472+
if [[ "$@" != *"rabbitmq"* ]]; then
473+
REQUIRED_COMPONENTS+=("rabbitmq")
474+
fi
466475
}
467476
determine_required_components_excluding_rabbitmq() {
468477
for (( i=1; i<=$#; i++)) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export KEYCLOAK_URL=https://keycloak:8443/realms/test
22
export OAUTH_PROVIDER_URL=https://keycloak:8443/realms/test
3-
export OAUTH_PROVIDER_CA_CERT=/config/oauth/keycloak/ca_certificate.pem
3+
export OAUTH_PROVIDER_CA_CERT=/config/oauth/keycloak/ca_keycloak_certificate.pem

selenium/test/oauth/env.docker.uaa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export UAA_URL=http://uaa:8080
1+
export UAA_URL=https://uaa:8443
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export KEYCLOAK_URL=https://localhost:8443/realms/test
22
export OAUTH_PROVIDER_URL=https://localhost:8443/realms/test
3-
export OAUTH_PROVIDER_CA_CERT=selenium/test/oauth/keycloak/ca_certificate.pem
3+
export OAUTH_PROVIDER_CA_CERT=selenium/test/oauth/keycloak/ca_keycloak_certificate.pem

selenium/test/oauth/env.local.uaa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export UAA_URL=http://localhost:8080
1+
export UAA_URL=https://localhost:8443
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[ client_alt_names ]
2+
email.1 = rabbit_client@localhost
3+
URI.1 = rabbit_client_id_uri

selenium/test/oauth/rabbitmq.uaa-oauth-provider.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ management.oauth_client_secret = ${OAUTH_CLIENT_SECRET}
33

44
# configure static signing keys and the oauth provider used by the plugin
55
auth_oauth2.default_key = ${OAUTH_SIGNING_KEY_ID}
6-
auth_oauth2.signing_keys.${OAUTH_SIGNING_KEY_ID} = ${OAUTH_SERVER_CONFIG_DIR}/signing-key.pem
6+
#auth_oauth2.signing_keys.${OAUTH_SIGNING_KEY_ID} = ${OAUTH_SERVER_CONFIG_DIR}/signing-key.pem

0 commit comments

Comments
 (0)