Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/kuttl/common/osp_check_cert_issuer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ for url in $(openstack endpoint list -c URL -f value | grep "$endpoint_filter");

echo "Checking $host_port ..."
if [[ "$ENDPOINT_TYPE" == "public" ]]; then
ISSUER=$(echo | openssl s_client -connect "$host_port" 2>/dev/null | openssl x509 -noout -issuer | sed -n 's/^.*CN=\([^,]*\).*$/\1/p')
ISSUER=$(echo | openssl s_client -connect "$host_port" 2>/dev/null | openssl x509 -noout -issuer | sed -n 's/^.*CN=\([^,]*\).*$/\1/p' | sed 's/ //g')
else
ISSUER=$(openssl s_client -connect $host_port < /dev/null 2>/dev/null | openssl x509 -issuer -noout -in /dev/stdin)
ISSUER=$(openssl s_client -connect $host_port </dev/null 2>/dev/null | openssl x509 -issuer -noout -in /dev/stdin | sed 's/ //g')
fi

if [[ "$ISSUER" != "$EXPECTED_ISSUER" ]]; then
Expand Down