DER is a binary format, so the `chomp` (here and below) doesn't seem necessary; it might even corrupt the output.