certbot/docs/using.rst

90 lines
1.8 KiB
ReStructuredText
Raw Normal View History

==============================
Using the Let's Encrypt client
==============================
Quick start
===========
Using docker you can quickly get yourself a testing cert. From the
server that the domain your requesting a cert for resolves to,
download docker, and issue the following command
.. code-block:: shell
sudo docker run -it --rm -p 443:443 --name letsencrypt \
2015-05-19 18:01:01 -04:00
-v "/etc/letsencrypt:/etc/letsencrypt" \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
quay.io/letsencrypt/lets-encrypt-preview:latest
And follow the instructions. Your new cert will be available in
``/etc/letsencrypt/certs``.
Prerequisites
=============
The demo code is supported and known to work on **Ubuntu and
Debian**. Therefore, prerequisites for other platforms listed below
are provided mainly for the :ref:`developers <hacking>` reference.
In general:
2015-04-14 10:18:11 -04:00
* ``sudo`` is required as a suggested way of running privileged process
* `swig`_ is required for compiling `m2crypto`_
* `augeas`_ is required for the ``python-augeas`` bindings
Ubuntu
------
2015-03-22 18:25:50 -04:00
.. code-block:: shell
2015-04-14 10:18:11 -04:00
sudo ./bootstrap/ubuntu.sh
Debian
------
.. code-block:: shell
2015-04-14 10:18:11 -04:00
sudo ./bootstrap/debian.sh
2015-05-17 02:52:33 -04:00
For squeeze you will need to:
- Use ``virtualenv --no-site-packages -p python`` instead of ``-p python2``.
.. _`#280`: https://github.com/letsencrypt/lets-encrypt-preview/issues/280
Mac OSX
-------
2015-03-22 18:25:50 -04:00
.. code-block:: shell
2015-04-14 10:18:11 -04:00
sudo ./bootstrap/mac.sh
Installation
============
2015-03-22 18:25:50 -04:00
.. code-block:: shell
2015-03-22 18:25:50 -04:00
virtualenv --no-site-packages -p python2 venv
2015-05-04 07:55:17 -04:00
./venv/bin/pip install -r requirements.txt
Usage
=====
The letsencrypt commandline tool has a builtin help:
2015-03-22 18:25:50 -04:00
.. code-block:: shell
./venv/bin/letsencrypt --help
.. _augeas: http://augeas.net/
.. _m2crypto: https://github.com/M2Crypto/M2Crypto
.. _swig: http://www.swig.org/