I have got a bunch of self-signed TLS certificates generated with OpenSSL. I need to concatenate them into a single file and distribute them across different Linux hosts used in a gluster cluster.
Naturally I might need to add or remove machines from the cluster, and it will be difficult to identify machines to add or remove if there are no comments and just encryption keys!
So far the file looks like:
-----BEGIN CERTIFICATE-----
MIIDhjCCAm6gAwIBAgIJAP8jOmCKigfgMA0GCSqGSIb3DQEBCwUAMFgxCzAJBgNV
BAYTAlVLMRMwEQYDVQQIDApTb21l....etc..etc
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIID/TCCAuWgAwIBAgIUZtviXBiz6YFUWHDrhMkmG0SnoDgwDQYJKoZIhvcNAQEL
BQAwgY0xCzAJBgNVBAYTAlVLMRAwDgYDVQ....etc..etc
-----END CERTIFICATE-----
I'm looking for a safe way to stick an ignored comment before all the entries:
-----BEGIN CERTIFICATE-----
Is there a universal syntax for adding comments to certificate files?
Thanks!