diff options
| author | Keshav Kini <keshav.kini@gmail.com> | 2021-05-16 10:59:56 -0700 |
|---|---|---|
| committer | Keshav Kini <keshav.kini@gmail.com> | 2021-05-16 17:23:11 -0700 |
| commit | 348858f2971310be9fba9a8ce3ee214dad5630c0 (patch) | |
| tree | d54964ab6a620bfc7f94ba52fc83e3b859c118b9 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 72df572fa3224a64189164446101721145c677da (diff) | |
nixos/security.pki: handle PEMs w/o a final newline
According to the ABNF grammar for PEM files described in [RFC
7468][1], an eol character (i.e. a newline) is not mandatory after the
posteb line (i.e. "-----END CERTIFICATE-----" in the case of
certificates).
This commit makes our CA certificate bundler expression account for
the possibility that files in config.security.pki.certificateFiles
might not have final newlines, by using `awk` instead of `cat` to
concatenate them. (`awk` prints a final newline from each input file
even if the file doesn't end with a newline.)
[1]: https://datatracker.ietf.org/doc/html/rfc7468#section-3
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
