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}'`
296
296
token=`echo ${enc_token} | base64 --decode`
297
297
#echo "token [${token}]"
298
298
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
-
303
299
# clean up any temporary files
304
300
rm -rf operator.rest.response.body operator.rest.stderr operator.cert.pem
305
301
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`
308
304
309
305
echo "Rest EndPoint url https://${ophost}:${opport}/operator/v1/domains/${domainuid}/clusters/${cluster}/scale"
310
306
You can’t perform that action at this time.
0 commit comments