summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-08-08 19:18:31 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-08-09 02:55:54 (EDT)
commitdb8a179c4e5e6e83e28bb9be7aa15ec37b822b92 (patch)
tree67bb8963ed96ad3b8ac299ad08243ee92b8946b6
parentf6226566c9b0c331da6d66079d00cdd95802305c (diff)
certdata2pem.sh: Fix corruption, wrap at 64 cols
-rwxr-xr-xcertdata2pem.sh8
-rw-r--r--changelog6
2 files changed, 10 insertions, 4 deletions
diff --git a/certdata2pem.sh b/certdata2pem.sh
index e12fc67..543195a 100755
--- a/certdata2pem.sh
+++ b/certdata2pem.sh
@@ -83,8 +83,7 @@ parse()
return 1
;;
*)
- value="${value}$(printf\
- "${val}")"
+ value="${value}${val}"
;;
esac
done
@@ -138,8 +137,9 @@ parse()
for label in ${trusted}; do
printf '%s\n' '-----BEGIN CERTIFICATE-----'
- eval "printf '%s' \"\${certificate_${label}}\"" | base64 -
- printf '%s\n' '-----END CERTIFICATE-----'
+ eval "printf \"\${certificate_${label}}\"" | base64 - | \
+ tr -d '\n' | fold -w 64 -
+ printf '\n%s\n' '-----END CERTIFICATE-----'
done
return 0
diff --git a/changelog b/changelog
index 183f2a0..c1a9cd5 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+nss-certdata (3.54-2) trunk
+
+ * Fix ASN.1 data that was corrupted in PEM encoding.
+
+ -- Patrick McDermott <patrick.mcdermott@libiquity.com> Sun, 09 Aug 2020 02:52:29 -0400
+
nss-certdata (3.54-1) trunk
* Initial release.