Closed glyph closed 1 year ago
That sounds like a pretty neat idea.
I’m generally thinking about moving the Twisted-specific parts into Twisted and make pem more useful for generic use-cases. This certainly sounds like one.
um is this still something you think is useful – barely 10 years later?
@hynek I think that with better tooling (certbot) and standardization (ACME) I spend a lot less time needing to do stuff like this on individual files. But the main thing I wanted to do with this, I am now trying to get a computer to do, instead: https://github.com/twisted/twisted/pull/11861
It would be nice to have a command-line tool to perform various simple operations on pems. Particularly,
pem join somefile.pem otherfile.pem --into=single.pem
to turnsomefile.pem
andotherfile.pem
into a single filesingle.pem
andpem split somefile.pem
to getsomefile.1.crt.pem
,somefile.2.key.pem
etc.With pyOpenSSL installed, this could potentially even give the split files meaningful names.
No less than 3 times in the last 3 weeks, I've been staring at incomprehensible caused by attempting to join and split non-newline-terminated
.pem
files together withcat
and regexes. These tasks aren't complex but having reliable ways to do them would be super handy.