certbot/docs/using.rst

92 lines
2.6 KiB
ReStructuredText
Raw Normal View History

==============================
Using the Let's Encrypt client
==============================
2015-06-19 07:00:00 -04:00
Getting the code
================
Please `install Git`_ and run the following commands:
.. code-block:: shell
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
2015-06-19 07:00:00 -04:00
Alternatively you could `download the ZIP archive`_ and extract the
snapshot of our repository, but it's strongly recommended to use the
above method instead.
.. _`install Git`: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
.. _`download the ZIP archive`:
https://github.com/letsencrypt/letsencrypt/archive/master.zip
2015-06-19 07:00:00 -04:00
Installation and Usage
======================
To install and run the client you just need to type:
.. code-block:: shell
./letsencrypt-auto
2015-10-15 02:53:50 -04:00
(Once letsencrypt is packaged by distributions, the command will just be
``letsencrypt``. ``letsencrypt-auto`` is a wrapper which installs virtualized
dependencies and provides automated updates during the beta program)
The ``letsencrypt`` commandline tool has a builtin help:
.. code-block:: shell
./letsencrypt-auto --help
2015-10-24 09:22:46 -04:00
.. warning:: Please do **not** use ``python setup.py install`` or
``python pip install .``. Please do **not** attempt the
2015-10-24 09:23:23 -04:00
installation commands as superuser/root and/or without virtual
environment, e.g. ``sudo python setup.py install``, ``sudo pip
install``, ``sudo ./venv/bin/...``. These modes of operation might
corrupt your operating system and are **not supported** by the
Let's Encrypt team!
Configuration file
------------------
It is possible to specify configuration file with
2015-10-23 22:10:56 -04:00
``letsencrypt-auto --config cli.ini`` (or shorter ``-c cli.ini``). An
example configuration file is shown below:
2015-10-23 22:10:56 -04:00
.. include:: ../examples/cli.ini
:code: ini
By default, the following locations are searched:
- ``/etc/letsencrypt/cli.ini``
- ``$XDG_CONFIG_HOME/letsencrypt/cli.ini`` (or
``~/.config/letsencrypt/cli.ini`` if ``$XDG_CONFIG_HOME`` is not
set).
.. keep it up to date with constants.py
Running with Docker
===================
2015-10-15 02:53:50 -04:00
Docker_ is another way to quickly obtain testing certs. From the
server that the domain your requesting a cert for resolves to,
`install Docker`_, issue the following command:
.. code-block:: shell
2015-10-20 04:00:58 -04:00
sudo docker run -it --rm -p 443:443 --name letsencrypt \
-v "/etc/letsencrypt:/etc/letsencrypt" \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
quay.io/letsencrypt/letsencrypt:latest auth
and follow the instructions. Your new cert will be available in
``/etc/letsencrypt/certs``.
.. _Docker: https://docker.com
2015-10-19 04:19:21 -04:00
.. _`install Docker`: https://docs.docker.com/userguide/