1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
5 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
7 ;;; Copyright © 2015, 2016, 2017 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016, 2017 ng0 <contact.ng0@cryptolab.net>
10 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
12 ;;; This file is part of GNU Guix.
14 ;;; GNU Guix is free software; you can redistribute it and/or modify it
15 ;;; under the terms of the GNU General Public License as published by
16 ;;; the Free Software Foundation; either version 3 of the License, or (at
17 ;;; your option) any later version.
19 ;;; GNU Guix is distributed in the hope that it will be useful, but
20 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 ;;; GNU General Public License for more details.
24 ;;; You should have received a copy of the GNU General Public License
25 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
27 (define-module (gnu packages tls)
28 #:use-module ((guix licenses) #:prefix license:)
29 #:use-module (guix packages)
30 #:use-module (guix download)
31 #:use-module (guix utils)
32 #:use-module (guix build-system gnu)
33 #:use-module (guix build-system perl)
34 #:use-module (guix build-system python)
35 #:use-module (guix build-system cmake)
36 #:use-module (gnu packages compression)
37 #:use-module (gnu packages)
38 #:use-module (gnu packages guile)
39 #:use-module (gnu packages libbsd)
40 #:use-module (gnu packages libffi)
41 #:use-module (gnu packages libidn)
42 #:use-module (gnu packages linux)
43 #:use-module (gnu packages ncurses)
44 #:use-module (gnu packages nettle)
45 #:use-module (gnu packages perl)
46 #:use-module (gnu packages pkg-config)
47 #:use-module (gnu packages python)
48 #:use-module (gnu packages texinfo)
49 #:use-module (gnu packages base)
50 #:use-module (srfi srfi-1))
52 (define-public libtasn1
59 (uri (string-append "mirror://gnu/libtasn1/libtasn1-"
63 "0h929bdq6w699y1mdkdajp5a6da8whgg3ba5p4j8x1wy36rlcjll"))))
64 (build-system gnu-build-system)
65 (native-inputs `(("perl" ,perl)))
66 (home-page "https://www.gnu.org/software/libtasn1/")
67 (synopsis "ASN.1 library")
69 "GNU libtasn1 is a library implementing the ASN.1 notation. It is used
70 for transmitting machine-neutral encodings of data objects in computer
71 networking, allowing for formal validation of data according to some
73 (license license:lgpl2.0+)))
81 (uri (string-append "https://lionet.info/soft/asn1c-"
85 "1fc64g45ykmv73kdndr4zdm4wxhimhrir4rxnygxvwkych5l81w0"))))
86 (build-system gnu-build-system)
89 (home-page "https://lionet.info/asn1c")
90 (synopsis "ASN.1 to C compiler")
91 (description "The ASN.1 to C compiler takes ASN.1 module
92 files and generates C++ compatible C source code. That code can be
93 used to serialize the native C structures into compact and unambiguous
94 BER/XER/PER-based data files, and deserialize the files back.
96 Various ASN.1 based formats are widely used in the industry, such as to encode
97 the X.509 certificates employed in the HTTPS handshake, to exchange control
98 data between mobile phones and cellular networks, to car-to-car communication
99 in intelligent transportation networks.")
100 (license license:bsd-2)))
102 (define-public p11-kit
109 (uri (string-append "https://p11-glue.freedesktop.org/releases/p11-kit-"
113 "1w7szm190phlkg7qx05ychlj2dbvkgkhx9gw6dx4d5rw62l6wwms"))
114 (modules '((guix build utils))) ; for substitute*
117 ;; Drop one test that fails, also when trying to compile manually.
118 ;; Reported upstream at
119 ;; https://bugs.freedesktop.org/show_bug.cgi?id=89027
120 (substitute* "Makefile.in"
121 (("test-module\\$\\(EXEEXT\\) ") ""))))))
122 (build-system gnu-build-system)
124 `(("pkg-config" ,pkg-config)))
127 ("libtasn1" ,libtasn1)))
129 `(#:configure-flags '("--without-trust-paths")))
130 (home-page "http://p11-glue.freedesktop.org/p11-kit.html")
131 (synopsis "PKCS#11 library")
133 "p11-kit provides a way to load and enumerate PKCS#11 modules. It
134 provides a standard configuration setup for installing PKCS#11 modules
135 in such a way that they are discoverable. It also solves problems with
136 coordinating the use of PKCS#11 by different components or libraries
137 living in the same process.")
138 (license license:bsd-3)))
140 (define-public gnutls
147 ;; Note: Releases are no longer on ftp.gnu.org since the
148 ;; schism (after version 3.1.5).
149 (string-append "mirror://gnupg/gnutls/v"
150 (version-major+minor version)
151 "/gnutls-" version ".tar.xz"))
154 "17apwvdkkazh5w8z8mbanpj2yj8s2002qwy46wz4v3akpa33wi5g"))))
155 (build-system gnu-build-system)
159 ;; GnuTLS doesn't consult any environment variables to specify
160 ;; the location of the system-wide trust store. Instead it has a
161 ;; configure-time option. Unless specified, its configure script
162 ;; attempts to auto-detect the location by looking for common
163 ;; places in the file system, none of which are present in our
164 ;; chroot build environment. If not found, then no default trust
165 ;; store is used, so each program has to provide its own
166 ;; fallback, and users have to configure each program
167 ;; independently. This seems suboptimal.
168 "--with-default-trust-store-dir=/etc/ssl/certs"
170 ;; FIXME: Temporarily disable p11-kit support since it is not
171 ;; working on mips64el.
174 #:phases (modify-phases %standard-phases
177 (lambda* (#:key outputs #:allow-other-keys)
178 ;; Copy the 4.1 MiB of section 3 man pages to "doc".
179 (let* ((out (assoc-ref outputs "out"))
180 (doc (assoc-ref outputs "doc"))
181 (mandir (string-append doc "/share/man/man3"))
182 (oldman (string-append out "/share/man/man3")))
184 (copy-recursively oldman mandir)
185 (delete-file-recursively oldman)
187 (outputs '("out" ;4.4 MiB
189 "doc")) ;4.1 MiB of man pages
191 `(("net-tools" ,net-tools)
192 ("pkg-config" ,pkg-config)
195 `(("guile" ,guile-2.2)))
197 ;; These are all in the 'Requires.private' field of gnutls.pc.
198 `(("libtasn1" ,libtasn1)
202 (home-page "https://www.gnu.org/software/gnutls/")
203 (synopsis "Transport layer security library")
205 "GnuTLS is a secure communications library implementing the SSL, TLS
206 and DTLS protocols. It is provided in the form of a C library to support the
207 protocols, as well as to parse and write X.5009, PKCS 12, OpenPGP and other
208 required structures.")
209 (license license:lgpl2.1+)
210 (properties '((ftp-server . "ftp.gnutls.org")
211 (ftp-directory . "/gcrypt/gnutls")))))
213 (define-public gnutls/guile-2.2
214 (deprecated-package "guile2.2-gnutls" gnutls))
216 (define-public gnutls/guile-2.0
217 ;; GnuTLS for Guile 2.0.
220 (name "guile2.0-gnutls")
221 (inputs `(("guile" ,guile-2.0)
222 ,@(alist-delete "guile" (package-inputs gnutls))))))
224 (define-public openssl
230 (uri (list (string-append "ftp://ftp.openssl.org/source/"
231 name "-" version ".tar.gz")
232 (string-append "ftp://ftp.openssl.org/source/old/"
233 (string-trim-right version char-set:letter)
234 "/" name "-" version ".tar.gz")))
237 "037kvpisc6qh5dkppcwbm5bg2q800xh2hma3vghz8xcycmdij1yf"))
238 (patches (search-patches "openssl-runpath.patch"
239 "openssl-c-rehash-in.patch"))))
240 (build-system gnu-build-system)
242 "doc" ;1.5MiB of man3 pages
243 "static")) ;6MiB of .a files
244 (native-inputs `(("perl" ,perl)))
246 `(#:disallowed-references (,perl)
251 ;; Changes to OpenSSL sometimes cause Perl to "sneak in" to the closure,
252 ;; so we explicitly disallow it here.
253 #:disallowed-references ,(list (canonical-package perl))
255 (modify-phases %standard-phases
257 'configure 'patch-Makefile.org
258 (lambda* (#:key outputs #:allow-other-keys)
259 ;; The default MANDIR is some unusual place. Fix that.
260 (let ((out (assoc-ref outputs "out")))
261 (patch-makefile-SHELL "Makefile.org")
262 (substitute* "Makefile.org"
263 (("^MANDIR[[:blank:]]*=.*$")
264 (string-append "MANDIR = " out "/share/man\n")))
268 (lambda* (#:key outputs #:allow-other-keys)
269 (let ((out (assoc-ref outputs "out")))
272 "shared" ;build shared libraries
275 ;; The default for this catch-all directory is
276 ;; PREFIX/ssl. Change that to something more
278 (string-append "--openssldir=" out
279 "/share/openssl-" ,version)
281 (string-append "--prefix=" out)
283 ;; XXX FIXME: Work around a code generation bug in GCC
284 ;; 4.9.3 on ARM when compiled with -mfpu=neon. See:
285 ;; <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66917>
286 ,@(if (and (not (%current-target-system))
287 (string-prefix? "armhf" (%current-system)))
291 'install 'make-libraries-writable
292 (lambda* (#:key outputs #:allow-other-keys)
293 ;; Make libraries writable so that 'strip' does its job.
294 (let ((out (assoc-ref outputs "out")))
295 (for-each (lambda (file)
297 (find-files (string-append out "/lib")
300 (add-after 'install 'move-static-libraries
301 (lambda* (#:key outputs #:allow-other-keys)
302 ;; Move static libraries to the "static" output.
303 (let* ((out (assoc-ref outputs "out"))
304 (lib (string-append out "/lib"))
305 (static (assoc-ref outputs "static"))
306 (slib (string-append static "/lib")))
307 (for-each (lambda (file)
308 (install-file file slib)
310 (find-files lib "\\.a$"))
312 (add-after 'install 'move-man3-pages
313 (lambda* (#:key outputs #:allow-other-keys)
314 ;; Move section 3 man pages to "doc".
315 (let* ((out (assoc-ref outputs "out"))
316 (man3 (string-append out "/share/man/man3"))
317 (doc (assoc-ref outputs "doc"))
318 (target (string-append doc "/share/man/man3")))
320 (for-each (lambda (file)
322 (string-append target "/"
325 (delete-file-recursively man3)
328 'patch-source-shebangs 'patch-tests
329 (lambda* (#:key inputs native-inputs #:allow-other-keys)
330 (let ((bash (assoc-ref (or native-inputs inputs) "bash")))
331 (substitute* (find-files "test" ".*")
333 (string-append bash "/bin/sh"))
338 'install 'remove-miscellany
339 (lambda* (#:key outputs #:allow-other-keys)
340 ;; The 'misc' directory contains random undocumented shell and Perl
341 ;; scripts. Remove them to avoid retaining a reference on Perl.
342 (let ((out (assoc-ref outputs "out")))
343 (delete-file-recursively (string-append out "/share/openssl-"
347 ;; FIXME: These two variables must designate a single file or directory
348 ;; and are not actually "search paths." In practice it works OK in user
349 ;; profiles because there's always just one item that matches the
351 (list (search-path-specification
352 (variable "SSL_CERT_DIR")
353 (files '("etc/ssl/certs")))
354 (search-path-specification
355 (variable "SSL_CERT_FILE")
356 (files '("etc/ssl/certs/ca-certificates.crt")))))
357 (synopsis "SSL/TLS implementation")
359 "OpenSSL is an implementation of SSL/TLS.")
360 (license license:openssl)
361 (home-page "http://www.openssl.org/")))
363 (define-public openssl-next
370 (uri (list (string-append "ftp://ftp.openssl.org/source/"
371 name "-" version ".tar.gz")
372 (string-append "ftp://ftp.openssl.org/source/old/"
373 (string-trim-right version char-set:letter)
374 "/" name "-" version ".tar.gz")))
375 (patches (search-patches "openssl-1.1.0-c-rehash-in.patch"))
378 "0r97n4n552ns571diz54qsgarihrxvbn7kvyv8wjyfs9ybrldxqj"))))
380 "doc" ;1.3MiB of man3 pages
381 "static")) ; 5.5MiB of .a files
383 (substitute-keyword-arguments (package-arguments openssl)
385 `(modify-phases ,phases
386 (delete 'patch-tests) ; These two phases are not needed by
387 (delete 'patch-Makefile.org) ; OpenSSL 1.1.0.
389 ;; Override configure phase since -rpath is now a configure option.
391 (lambda* (#:key outputs #:allow-other-keys)
392 (let* ((out (assoc-ref outputs "out"))
393 (lib (string-append out "/lib")))
396 "shared" ;build shared libraries
399 ;; The default for this catch-all directory is
400 ;; PREFIX/ssl. Change that to something more
402 (string-append "--openssldir=" out
403 "/share/openssl-" ,version)
405 (string-append "--prefix=" out)
406 (string-append "-Wl,-rpath," lib)
408 ;; XXX FIXME: Work around a code generation bug in GCC
409 ;; 4.9.3 on ARM when compiled with -mfpu=neon. See:
410 ;; <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66917>
411 ,@(if (and (not (%current-target-system))
412 (string-prefix? "armhf" (%current-system)))
416 ;; XXX: Duplicate this phase to make sure 'version' evaluates
417 ;; in the current scope and not the inherited one.
418 (replace 'remove-miscellany
419 (lambda* (#:key outputs #:allow-other-keys)
420 ;; The 'misc' directory contains random undocumented shell and Perl
421 ;; scripts. Remove them to avoid retaining a reference on Perl.
422 (let ((out (assoc-ref outputs "out")))
423 (delete-file-recursively (string-append out "/share/openssl-"
427 (define-public libressl
435 "http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-"
439 "1ykf6dqlbafafhbdfmcj19pjj1z6wmsq0rmyqga1i0xv5x95nyhh"))))
440 (build-system gnu-build-system)
442 ;; Do as if 'getentropy' was missing since older Linux kernels lack it
443 ;; and libc would return ENOSYS, which is not properly handled.
444 ;; See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00235.html>.
445 '(#:configure-flags '("ac_cv_func_getentropy=no")))
447 ;; FIXME: These two variables must designate a single file or directory
448 ;; and are not actually "search paths." In practice it works OK in
449 ;; user profiles because there's always just one item that matches the
451 (list (search-path-specification
452 (variable "SSL_CERT_DIR")
453 (files '("etc/ssl/certs")))
454 (search-path-specification
455 (variable "SSL_CERT_FILE")
456 (files '("etc/ssl/certs/ca-certificates.crt")))))
457 (home-page "https://www.libressl.org/")
458 (synopsis "SSL/TLS implementation")
459 (description "LibreSSL is a version of the TLS/crypto stack forked
460 from OpenSSL in 2014, with the goals of modernizing the codebase, improving
461 security, and applying best practice development processes.")
462 ;; Files taken from OpenSSL keep their license, others are under various
463 ;; non-copyleft licenses.
464 (license (list license:openssl
465 (license:non-copyleft
467 "See COPYING in the distribution.")))))
469 (define-public python-acme
472 ;; Remember to update the hash of certbot when updating python-acme.
476 (uri (pypi-uri "acme" version))
479 "0asmkfkzbswnkrvbj5m01xgy4f6g1fjbj2nir1hhrn3ipcdrsv8f"))))
480 (build-system python-build-system)
483 (modify-phases %standard-phases
484 (add-after 'unpack 'patch-dependency
485 ;; This module is part of the Python standard library, so we don't
486 ;; need to use an external package.
487 ;; https://github.com/certbot/certbot/pull/2249
489 (substitute* "setup.py"
490 (("'argparse',") ""))
492 (add-after 'build 'build-documentation
494 (zero? (system* "make" "-C" "docs" "man" "info"))))
495 (add-after 'install 'install-documentation
496 (lambda* (#:key outputs #:allow-other-keys)
497 (let* ((out (assoc-ref outputs "out"))
498 (man (string-append out "/share/man/man1"))
499 (info (string-append out "/info")))
500 (install-file "docs/_build/texinfo/acme-python.info" info)
501 (install-file "docs/_build/man/acme-python.1" man)
503 ;; TODO: Add optional inputs for testing.
505 `(("python-mock" ,python-mock)
507 ("python-sphinx" ,python-sphinx)
508 ("python-sphinxcontrib-programoutput" ,python-sphinxcontrib-programoutput)
509 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
510 ("texinfo" ,texinfo)))
512 `(("python-six" ,python-six)
513 ("python-requests" ,python-requests)
514 ("python-pytz" ,python-pytz)
515 ("python-pyrfc3339" ,python-pyrfc3339)
516 ("python-pyasn1" ,python-pyasn1)
517 ("python-cryptography" ,python-cryptography)
518 ("python-pyopenssl" ,python-pyopenssl)))
519 (home-page "https://github.com/letsencrypt/letsencrypt")
520 (synopsis "ACME protocol implementation in Python")
521 (description "ACME protocol implementation in Python")
522 (license license:asl2.0)))
524 (define-public python2-acme
525 (package-with-python2 python-acme))
527 (define-public certbot
530 ;; Certbot and python-acme are developed in the same repository, and their
531 ;; versions should remain synchronized.
532 (version (package-version python-acme))
535 (uri (pypi-uri name version))
538 "0rdby57hw35qdrbl7kigscphnz4kqb608bqzrcb73nb99092i6si"))))
539 (build-system python-build-system)
542 ,@(substitute-keyword-arguments (package-arguments python-acme)
544 `(modify-phases ,phases
545 (replace 'install-documentation
546 (lambda* (#:key outputs #:allow-other-keys)
547 (let* ((out (assoc-ref outputs "out"))
548 (man1 (string-append out "/share/man/man1"))
549 (man7 (string-append out "/share/man/man7"))
550 (info (string-append out "/info")))
551 (install-file "docs/_build/texinfo/Certbot.info" info)
552 (install-file "docs/_build/man/certbot.1" man1)
553 (install-file "docs/_build/man/certbot.7" man7)
555 ;; TODO: Add optional inputs for testing.
557 `(("python2-nose" ,python2-nose)
558 ("python2-mock" ,python2-mock)
560 ("python2-sphinx" ,python2-sphinx)
561 ("python2-sphinx-rtd-theme" ,python2-sphinx-rtd-theme)
562 ("python2-sphinx-repoze-autointerface" ,python2-sphinx-repoze-autointerface)
563 ("python2-sphinxcontrib-programoutput" ,python2-sphinxcontrib-programoutput)
564 ("texinfo" ,texinfo)))
566 `(("python2-acme" ,python2-acme)
567 ("python2-zope-interface" ,python2-zope-interface)
568 ("python2-pyrfc3339" ,python2-pyrfc3339)
569 ("python2-pyopenssl" ,python2-pyopenssl)
570 ("python2-configobj" ,python2-configobj)
571 ("python2-configargparse" ,python2-configargparse)
572 ("python2-zope-component" ,python2-zope-component)
573 ("python2-parsedatetime" ,python2-parsedatetime)
574 ("python2-six" ,python2-six)
575 ("python2-psutil" ,python2-psutil)
576 ("python2-requests" ,python2-requests)
577 ("python2-pytz" ,python2-pytz)))
578 (synopsis "Let's Encrypt client by the Electronic Frontier Foundation")
579 (description "Certbot automatically receives and installs X.509 certificates
580 to enable Transport Layer Security (TLS) on servers. It interoperates with the
581 Let’s Encrypt certificate authority (CA), which issues browser-trusted
582 certificates for free.")
583 (home-page "https://certbot.eff.org/")
584 (license license:asl2.0)))
586 (define-public letsencrypt
587 (package (inherit certbot)
589 (properties `((superseded . ,certbot)))))
591 (define-public perl-net-ssleay
593 (name "perl-net-ssleay")
597 (uri (string-append "mirror://cpan/authors/id/M/MI/MIKEM/"
598 "Net-SSLeay-" version ".tar.gz"))
601 "1m2wwzhjwsg0drlhp9w12fl6bsgj69v8gdz72jqrqll3qr7f408p"))))
602 (build-system perl-build-system)
605 ("patch/disable-ede-test"
606 ,(search-patch "perl-net-ssleay-disable-ede-test.patch"))))
607 (inputs `(("openssl" ,openssl)))
610 (modify-phases %standard-phases
613 (lambda* (#:key inputs #:allow-other-keys)
614 ;; XXX We apply this patch here instead of in the 'origin' because
615 ;; this package's build system fails badly when the source file
617 ;; XXX Try removing this patch for perl-net-ssleay > 1.68
618 (zero? (system* "patch" "--force" "-p1" "-i"
619 (assoc-ref inputs "patch/disable-ede-test")))))
621 'configure 'set-ssl-prefix
622 (lambda* (#:key inputs #:allow-other-keys)
623 (setenv "OPENSSL_PREFIX" (assoc-ref inputs "openssl"))
625 (synopsis "Perl extension for using OpenSSL")
627 "This module offers some high level convenience functions for accessing
628 web pages on SSL servers (for symmetry, the same API is offered for accessing
629 http servers, too), an sslcat() function for writing your own clients, and
630 finally access to the SSL api of the SSLeay/OpenSSL package so you can write
631 servers or clients for more complicated applications.")
632 (license license:perl-license)
633 (home-page "http://search.cpan.org/~mikem/Net-SSLeay-1.66/")))
635 (define-public perl-crypt-openssl-rsa
637 (name "perl-crypt-openssl-rsa")
643 "mirror://cpan/authors/id/P/PE/PERLER/Crypt-OpenSSL-RSA-"
648 "1gnpvv09b2gpifwdzc5jnhama3d1a4c39lzj9hcaicsb8rvzjmsk"))))
649 (build-system perl-build-system)
651 `(("perl-crypt-openssl-bignum" ,perl-crypt-openssl-bignum)
652 ("perl-crypt-openssl-random" ,perl-crypt-openssl-random)
653 ("openssl" ,openssl)))
654 (arguments perl-crypt-arguments)
656 "http://search.cpan.org/dist/Crypt-OpenSSL-RSA")
658 "RSA encoding and decoding, using the openSSL libraries")
659 (description "Crypt::OpenSSL::RSA does RSA encoding and decoding (using the
660 OpenSSL libraries).")
661 (license license:perl-license)))
663 (define perl-crypt-arguments
664 `(#:phases (modify-phases %standard-phases
665 (add-before 'configure 'patch-Makefile.PL
666 (lambda* (#:key inputs #:allow-other-keys)
667 (substitute* "Makefile.PL"
668 (("'LIBS'.*=>.*") (string-append "'LIBS' => ['-L"
669 (assoc-ref inputs "openssl")
670 "/lib -lcrypto'],")))
673 (define-public perl-crypt-openssl-bignum
675 (name "perl-crypt-openssl-bignum")
681 "mirror://cpan/authors/id/K/KM/KMX/Crypt-OpenSSL-Bignum-"
686 "05yzrdglrrzp191krf77zrwfkmzrfwrsrx1vyskbj94522lszk67"))))
687 (build-system perl-build-system)
688 (inputs `(("openssl" ,openssl)))
689 (arguments perl-crypt-arguments)
691 "http://search.cpan.org/dist/Crypt-OpenSSL-Bignum")
693 "OpenSSL's multiprecision integer arithmetic in Perl")
694 (description "Crypt::OpenSSL::Bignum provides multiprecision integer
695 arithmetic in Perl.")
696 ;; At your option either gpl1+ or the Artistic License
697 (license license:perl-license)))
699 (define-public perl-crypt-openssl-random
701 (name "perl-crypt-openssl-random")
707 "mirror://cpan/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-"
712 "0yjcabkibrkafywvdkmd1xpi6br48skyk3l15ni176wvlg38335v"))))
713 (build-system perl-build-system)
714 (inputs `(("openssl" ,openssl)))
715 (arguments perl-crypt-arguments)
717 "http://search.cpan.org/dist/Crypt-OpenSSL-Random")
719 "OpenSSL/LibreSSL pseudo-random number generator access")
720 (description "Crypt::OpenSSL::Random is a OpenSSL/LibreSSL pseudo-random
722 (license license:perl-license)))
724 (define-public acme-client
730 (uri (string-append "https://kristaps.bsd.lv/" name "/"
731 "snapshots/" name "-portable-"
735 "00q05b3b1dfnfp7sr1nbd212n0mqrycl3cr9lbs51m7ncaihbrz9"))))
736 (build-system gnu-build-system)
738 '(#:tests? #f ; no test suite
741 (string-append "PREFIX=" (assoc-ref %outputs "out")))
743 (modify-phases %standard-phases
744 (add-after 'unpack 'patch-paths
745 (lambda* (#:key inputs #:allow-other-keys)
746 (let ((pem (string-append (assoc-ref inputs "libressl")
747 "/etc/ssl/cert.pem")))
748 (substitute* "http.c"
749 (("/etc/ssl/cert.pem") pem))
751 (delete 'configure)))) ; no './configure' script
753 `(("pkg-config" ,pkg-config)))
756 ("libressl" ,libressl)))
757 (synopsis "Let's Encrypt client by the OpenBSD project")
758 (description "acme-client is a Let's Encrypt client implemented in C. It
759 uses a modular design, and attempts to secure itself by dropping privileges and
760 operating in a chroot where possible. acme-client is developed on OpenBSD and
761 then ported to the GNU / Linux environment.")
762 (home-page "https://kristaps.bsd.lv/acme-client/")
763 ;; acme-client is distributed under the ISC license, but the files 'jsmn.h'
764 ;; and 'jsmn.c' are distributed under the Expat license.
765 (license (list license:isc license:expat))))
767 ;; The "-apache" variant is the upstreamed prefered variant. A "-gpl"
768 ;; variant exists in addition to the "-apache" one.
769 (define-public mbedtls-apache
771 (name "mbedtls-apache")
776 ;; XXX: The download links on the website are script redirection links
777 ;; which effectively lead to the format listed in the uri here.
778 (uri (string-append "https://tls.mbed.org/download/mbedtls-"
779 version "-apache.tgz"))
782 "065hn5zibzflivabdh9p41dknda7wicl2zhc936dmakqfjprip8p"))))
783 (build-system cmake-build-system)
786 (synopsis "Small TLS library")
788 "@code{mbed TLS}, formerly known as PolarSSL, makes it trivially easy
789 for developers to include cryptographic and SSL/TLS capabilities in their
790 (embedded) products, facilitating this functionality with a minimal
792 (home-page "https://tls.mbed.org")
793 (license license:asl2.0)))