4 Preferable way is to :ref:`download <download>` tarball with the
5 signature from `official website <http://pyderasn.cypherpunks.ru/>`__::
7 $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-5.4.tar.xz
8 $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-5.4.tar.xz.sig
9 $ gpg --verify pyderasn-5.4.tar.xz.sig pyderasn-5.4.tar.xz
10 $ xz --decompress --stdout pyderasn-5.4.tar.xz | tar xf -
12 $ python setup.py install
13 # or copy pyderasn.py (+six.py, possibly termcolor.py) to your PYTHONPATH
15 PyDERASN depends on `six <https://pypi.org/project/six/>`__ package
16 for keeping compatibility with Py27/Py35. It is included in the tarball.
17 You can also find it mirrored on :ref:`download <download>` page.
19 You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
21 $ cat > requirements.txt <<EOF
22 pyderasn==5.4 --hash=sha256:c6b4cfbe3b4bfb3bed1c5b8fc8e5d4cc78fd2abc10a7c1360336471d9a2b4372
23 six==1.13.0 --hash=sha256:30f610279e8b2578cab6db20741130331735c781b56053c59c4076da27f06b66
25 $ pip install --requirement requirements.txt
27 You have to verify downloaded tarballs integrity and authenticity to be
28 sure that you retrieved trusted and untampered software. `GNU Privacy
29 Guard <https://www.gnupg.org/>`__ is used for that purpose.
31 For the very first time it is necessary to get signing public key and
32 import it. It is provided below, but you should check alternative
37 pub rsa2048/0x04A933D1BA20327A 2017-09-20
38 2ED6 C846 3051 02DF 5B4E 0383 04A9 33D1 BA20 327A
39 uid PyDERASN releases <pyderasn@cypherpunks.ru>
41 $ gpg --auto-key-locate dane --locate-keys pyderasn at cypherpunks dot ru
42 $ gpg --auto-key-locate wkd --locate-keys pyderasn at cypherpunks dot ru
44 .. literalinclude:: ../PUBKEY.asc