{:start /-----END CERTIFICATE-----/!{N;b start};/.*/p}&#39; httpbin-proxy-cert.txt &gt; certs.pem
$ awk &#39;BEGIN {counter=0;} /BEGIN CERT/{counter++} { print &gt; &#34;proxy-cert-&#34; counter &#34;.pem&#34;}&#39; &lt; certs.pem</code></pre></li><li><p>确认根证书与管理员指定的证书是否相同：</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ openssl x509 -in certs/cluster1/root-cert.pem -text -noout &gt; /tmp/root-cert.crt.txt
$ openssl x509 -in ./proxy-cert-3.pem 