There is a very similar question here that but as far as I can tell it deals with one input PEM file whereas I have three, one of which is a chain file.
I have these three files generated by a LetsEncrypt helper program (win-acme).
foo.bar.co.uk-chain.pem
foo.bar.co.uk-crt.pem
foo.bar.co.uk-key.pem
What commands should I run in openssl
(or otherwise) to generate two files in the form of foo.bar.co.uk.key
and foo.bar.co.uk.crt
?