Skip to content

Commit 4803c8f

Browse files
committed
Fix site/scaling.md documentation
1 parent 2b5368c commit 4803c8f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

site/scaling.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,11 @@ enc_token=`kubectl get secret ${sec} -n ${ns} -o jsonpath='{.data.token}'`
296296
token=`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
304300
rm -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
309305
echo "Rest EndPoint url https://${ophost}:${opport}/operator/v1/domains/${domainuid}/clusters/${cluster}/scale"
310306

0 commit comments

Comments
 (0)