The
openssl x509 command converts single certificates, not certificate bundles. In how you used it, the file
fullchain.pem would contain only the first certificate from
fullchain.crt.
You can split
fullchain.crt into individual certificates with
csplit:
Code:
csplit -zf'ca-cert' -b'%02d.pem' fullchain.crt '/^-----END/+1' '{*}'