wrap a line
ns=${ns:-maestro-platform-system} secret=${secret:-maestro-ca} kubectl get secret -n $ns $secret -o jsonpath='{.data.*}' | base64 -d | openssl x509 -noout -text openssl s_client -connect web-ui.kind.internal:443 # kubectl get -n $ns secrets $secret -o json | jq -r ".data | to_entries[] | [.value]|.[0]" | fold -sw 64 | sed -e '1 i\-----BEGIN CERTIFICATE-----' -e '$a-----END CERTIFICATE-----'