InstallΒΆ

Preferable way is to download tarball with the signature from official website:

% wget http://pyderasn.cypherpunks.ru/pyderasn-3.13.tar.xz
% wget http://pyderasn.cypherpunks.ru/pyderasn-3.13.tar.xz.sig
% gpg --verify pyderasn-3.13.tar.xz.sig pyderasn-3.13.tar.xz
% xz -d < pyderasn-3.13.tar.xz | tar xf -
% cd pyderasn-3.13
% python setup.py install
# or copy pyderasn.py (+six.py, possibly termcolor.py) to your PYTHONPATH

PyDERASN depends on six package for keeping compatibility with Py27/Py35. It is included in the tarball. You can also find it mirrored on download page.

You could use PIP (no authentication is performed!):

% pip install pyderasn

You have to verify downloaded tarballs integrity and authenticity to be sure that you retrieved trusted and untampered software. GNU Privacy Guard is used for that purpose.

For the very first time it is necessary to get signing public key and import it. It is provided below, but you should check alternative resources.

pub   rsa2048/0x04A933D1BA20327A 2017-09-20
      2ED6 C846 3051 02DF 5B4E  0383 04A9 33D1 BA20 327A
uid   PyDERASN releases <pyderasn@cypherpunks.ru>

% gpg --keyserver hkp://keys.gnupg.net/ --recv-keys 0x04A933D1BA20327A
% gpg --auto-key-locate dane --locate-keys pyderasn at cypherpunks dot ru
% gpg --auto-key-locate wkd --locate-keys pyderasn at cypherpunks dot ru
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFnCv/YBCAC8TD+EhE5qDTwHj25OKer4baCpvIMgGYprAmwiUkVq0Wq38on/
xszHcKcLShApVQXfx32bx+laXdokv1BAPJygrbAo3ocwuo/tBDNlqQ1Tm9vdAhz9
8S6B7UTLsyO4WkhC9h6wHPMEG4VuSxyHwF+lg5wcbDIHZRn029UctYSjdBXYL/YL
kPfywzLW6sB7FdDWv2Eb7SosTGz9T4kgco3a8cqUbtroawRmXw+AdyPDsxKf2fMP
xpBHhPQvWCnd294keJJ7EiqM11u9f0yRfSotVJU6UHETTgtdPwtP19RLfEqFUWUc
ZYTq2da1cAzBuseczZXbLk01njg0io2YPB0BABEBAAG0K1B5REVSQVNOIHJlbGVh
c2VzIDxweWRlcmF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