File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -296,15 +296,11 @@ enc_token=`kubectl get secret ${sec} -n ${ns} -o jsonpath='{.data.token}'`
296296token=`echo ${enc_token} | base64 --decode`
297297#echo "token [${token}]"
298298
299- # Retrieve SSL certificate for the external REST endpoint from the generated yaml file for the Operator
300- operator_cert_data=`kubectl get cm -n ${ns} weblogic-operator-cm -o jsonpath='{.data.externalOperatorCert}'`
301- #echo "operator_cert_data [${operator_cert_data}]"
302-
303299# clean up any temporary files
304300rm -rf operator.rest.response.body operator.rest.stderr operator.cert.pem
305301
306- # Decode and store the encoded SSL certificate into a pem file
307- echo ${operator_cert_data} | base64 --decode > operator.cert.pem
302+ # Retrieve SSL certificate from the Operator's external REST endpoint
303+ `openssl s_client -showcerts -connect ${ophost}:${opport} </dev/null 2>/dev/null | openssl x509 -outform PEM > operator.cert.pem`
308304
309305echo "Rest EndPoint url https://${ophost}:${opport}/operator/v1/domains/${domainuid}/clusters/${cluster}/scale"
310306
You can’t perform that action at this time.
0 commit comments