<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>mtls CLI command reference on Dapr Docs</title><link>https://v1-18.docs.dapr.io/reference/cli/dapr-mtls/</link><description>Recent content in mtls CLI command reference on Dapr Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://v1-18.docs.dapr.io/reference/cli/dapr-mtls/index.xml" rel="self" type="application/rss+xml"/><item><title>mtls export CLI command reference</title><link>https://v1-18.docs.dapr.io/reference/cli/dapr-mtls/dapr-mtls-export/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/reference/cli/dapr-mtls/dapr-mtls-export/</guid><description>&lt;h3 id="description">Description&lt;/h3>
&lt;p>Export the root Certificate Authority (CA), issuer cert and issuer key to local files&lt;/p>
&lt;h3 id="supported-platforms">Supported platforms&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://v1-18.docs.dapr.io/operations/hosting/kubernetes/">Kubernetes&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="usage">Usage&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>dapr mtls &lt;span style="color:#204a87">export&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">[&lt;/span>flags&lt;span style="color:#ce5c00;font-weight:bold">]&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="flags">Flags&lt;/h3>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Environment Variable&lt;/th>
 &lt;th>Default&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>--help&lt;/code>, &lt;code>-h&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>help for export&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>--out&lt;/code>, &lt;code>-o&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>current directory&lt;/td>
 &lt;td>The output directory path to save the certs&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h3 id="examples">Examples&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># Check expiry of Kubernetes certs&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>dapr mtls &lt;span style="color:#204a87">export&lt;/span> -o ./certs
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="warning-messages">Warning messages&lt;/h3>
&lt;p>This command can issue warning messages.&lt;/p>
&lt;h4 id="root-certificate-renewal-warning">Root certificate renewal warning&lt;/h4>
&lt;p>If the mtls root certificate deployed to the Kubernetes cluster expires in under 30 days the following warning message is displayed:&lt;/p></description></item><item><title>mtls expiry CLI command reference</title><link>https://v1-18.docs.dapr.io/reference/cli/dapr-mtls/dapr-mtls-expiry/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/reference/cli/dapr-mtls/dapr-mtls-expiry/</guid><description>&lt;h3 id="description">Description&lt;/h3>
&lt;p>Checks the expiry of the root Certificate Authority (CA) certificate&lt;/p>
&lt;h3 id="supported-platforms">Supported platforms&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://v1-18.docs.dapr.io/operations/hosting/kubernetes/">Kubernetes&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="usage">Usage&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>dapr mtls expiry &lt;span style="color:#ce5c00;font-weight:bold">[&lt;/span>flags&lt;span style="color:#ce5c00;font-weight:bold">]&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="flags">Flags&lt;/h3>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Environment Variable&lt;/th>
 &lt;th>Default&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>--help&lt;/code>, &lt;code>-h&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>help for expiry&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h3 id="examples">Examples&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># Check expiry of Kubernetes certs&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>dapr mtls expiry
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>mtls renew certificate CLI command reference</title><link>https://v1-18.docs.dapr.io/reference/cli/dapr-mtls/dapr-mtls-renew-certificate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/reference/cli/dapr-mtls/dapr-mtls-renew-certificate/</guid><description>&lt;h3 id="description">Description&lt;/h3>
&lt;p>This command can be used to renew expiring Dapr certificates. For example the Dapr Sentry service can generate default root and issuer certificates used by applications. For more information see &lt;a href="https://v1-18.docs.dapr.io/reference/cli/dapr-mtls/dapr-mtls-renew-certificate/#secure-dapr-to-dapr-communication">secure Dapr to Dapr communication&lt;/a>&lt;/p>
&lt;h3 id="supported-platforms">Supported platforms&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://v1-18.docs.dapr.io/operations/hosting/kubernetes/">Kubernetes&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="usage">Usage&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>dapr mtls renew-certificate &lt;span style="color:#ce5c00;font-weight:bold">[&lt;/span>flags&lt;span style="color:#ce5c00;font-weight:bold">]&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="flags">Flags&lt;/h3>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Environment Variable&lt;/th>
 &lt;th>Default&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>--help&lt;/code>, &lt;code>-h&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>help for renew-certificate&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>--kubernetes&lt;/code>, &lt;code>-k&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;code>false&lt;/code>&lt;/td>
 &lt;td>supported platform&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>--valid-until&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>365 days&lt;/td>
 &lt;td>Validity for newly created certificates&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>--restart&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>false&lt;/td>
 &lt;td>Restarts Dapr control plane services (Sentry service, Operator service and Placement server)&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>--timeout&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>300 sec&lt;/td>
 &lt;td>The timeout for the certificate renewal process&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>--ca-root-certificate&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>File path to user provided PEM root certificate&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>--issuer-public-certificate&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>File path to user provided PEM issuer certificate&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>--issuer-private-key&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>File path to user provided PEM issue private key&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>--private-key&lt;/code>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>User provided root.key file which is used to generate root certificate&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h3 id="examples">Examples&lt;/h3>
&lt;h4 id="renew-certificates-by-generating-brand-new-certificates">Renew certificates by generating brand new certificates&lt;/h4>
&lt;p>Generates new root and issuer certificates for the Kubernetes cluster with a default validity of 365 days. The certificates are not applied to the Dapr control plane.&lt;/p></description></item></channel></rss>