Added clarity around SSL certificate format
parent
eb0224d770
commit
04e553c6ae
|
@ -4,7 +4,7 @@ By default, Portainer’s web interface and API is exposed over HTTP. This is no
|
|||
|
||||
## :fontawesome-solid-lock: Securing Portainer using SSL with Docker
|
||||
|
||||
To do so, you can use the following flags <code>--ssl</code>, <code>--sslcert</code> and <code>--sslkey</code>:
|
||||
To do so, you can use the <code>--ssl</code>, <code>--sslcert</code> and <code>--sslkey</code> flags. Portainer expects certificates in PEM format.
|
||||
|
||||
<pre><code>$ docker run -d -p 443:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v ~/local-certs:/certs -v portainer_data:/data portainer/portainer-ee:latest --ssl --sslcert /certs/portainer.crt --sslkey /certs/portainer.key</code></pre>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ By default, Portainer’s web interface and API is exposed over HTTP. This is no
|
|||
|
||||
## :fontawesome-solid-lock: Securing Portainer using SSL with Docker
|
||||
|
||||
To do so, you can use the following flags <code>--ssl</code>, <code>--sslcert</code> and <code>--sslkey</code>:
|
||||
To do so, you can use the <code>--ssl</code>, <code>--sslcert</code> and <code>--sslkey</code> flags. Portainer expects certificates in PEM format.
|
||||
|
||||
<pre><code>$ docker run -d -p 443:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v ~/local-certs:/certs -v portainer_data:/data portainer/portainer-ce --ssl --sslcert /certs/portainer.crt --sslkey /certs/portainer.key</code></pre>
|
||||
|
||||
|
|
Loading…
Reference in New Issue