2021-08-30 09:45:43 -07:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
url = "https://letsencrypt.org/certs/letsencryptauthorityx3.pem.txt";
|
|
|
|
sha256 = "b6dd03f7fb8508e4f7ffe82ca8a3f98dde163e0bd44897e112a0850a5b606acf";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
|
2021-11-01 10:36:47 -07:00
|
|
|
name = "letsencrypt-ca-pem";
|
2021-08-30 09:45:43 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "isrgrootx1.pem.txt";
|
|
|
|
url = url;
|
|
|
|
sha256 = sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-11-01 10:36:47 -07:00
|
|
|
mkdir -pv $out
|
|
|
|
cp -v $src $out/ca.pem
|
2021-08-30 09:45:43 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2021-11-01 10:36:47 -07:00
|
|
|
homepage = https://letsencrypt.com/certificates;
|
2021-08-30 09:45:43 -07:00
|
|
|
description = "Certificate Authority (CA) certificate for LetsEncrypt";
|
|
|
|
};
|
|
|
|
}
|