Cluster Linking - Certificate Update

Good day,

Im attempting to update a cluster link as the certificate will expire at some point. The PEM file we add in the updatecert.txt has the old and new cert, effectively allowing a seamless switchover.

Using the CLI. and the below command. We update the link , no errors.
confluent kafka link configuration update LINK-NAME --config updatecert.txt --cluster lkc-XXXXXXX

The cluster link is updated, then a few minutes after, goes into a UNAVAILABLE State.

The updatecert.txt has two parameters following the documentation from the below link. the certs are formatted onto a single line.
ssl.truststore.type=PEM
ssl.truststore.certificates=

Security Considerations for Cluster Linking on Confluent Cloud | Confluent Documentation

Question: Has anyone uploaded via cli a config file with the PEM formatted to a single line? If so, how did you format the file?

basically it should be something

ssl.truststore.certificates= -----BEGIN CERTIFICATE-----
MIIDhTCCAm2gAwIBAgIEHIu+WzANBgkqhkiG9w0BAQsFADBbMScwJQYDVQQDDB5SZWdlcnkgU2Vs
Zi1TaWduZWQgQ2VydGlmaWNhdGUxIzAhBgNVBAoMGlJlZ2VyeSwgaHR0cHM6Ly9yZWdlcnkuY29t
MQswCQYDVQQGEwJVQTAgFw0yNDA3MDQwMDAwMDBaGA8yMTI0MDcwNDA5MzMyNVowRzETMBEGA1UE
AwwKZGVtb2NsLmNvbTEjMCEGA1UECgwaUmVnZXJ5LCBodHRwczovL3JlZ2VyeS5jb20xCzAJBgNV
BAYTAlVBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm5RSPYa6dn+7KwjIw1G0UlH/
jvCPmVxJ4VZDVD9nI4+ZtFpdATMp+q2sW8wllWRMtFZTZPtzDA/N+nH33eOJLf1mgYaJfyuzt3FL
crBKpeRLjOIYdmdfR4OqyuFowosuwuaGDaw4b9dRFlk6kMszgdC9/GgZme6XgXAbjWbmWZneoDPA
OFpHXNz1W1Gd4qEGa2r/dUX2Wa/wdgWFJ94n0d2xsD0Fc/YkJwmcWiYan4EhEMhprrWm30G43VK1
2ptFn3pkiW6/9AmBfwxd2MeRaKqeHbmKy4132GWRrjYa8pvCnjsChabc7ZkHKY6o/46UNwGsrLXg
LPIDLPKwOckHfwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNV
HQ4EFgQUxALw2rofk6SCFSIKkbexTn3poMEwHwYDVR0jBBgwFoAUxALw2rofk6SCFSIKkbexTn3p
oMEwDQYJKoZIhvcNAQELBQADggEBAJLIl2InKmpk3CWhd/0HBuw5WDjh44PUj9BtSxDgK9srOO5V
46wM3rqCR4Ezc6Xd2+BNh6U8tfCVFVrsaq7KGTMVn8WFrEaM/0dh5zVgYFuhdbj7YBr82zIAX2CX
IbvBCVq3EIUfckfuCYJb8MBQK/fRAnPcHlYOCrVUZ5CTItKjymjrGRsQwpe9muL1T6XM1GLRtq5r
Ci5FO/vbkIXWTCRlq/C5twLXKjYQw1AKZKm4s2JmxEzuOuZfAMgJIrPhIQwWn2s0Z4rUJEwBlOYe
CS3qB+d9gajPzPvszNQ4fOwD2lYHg3wl7wfIhAnah94pXcz3OCygCWrv4+qjSIs3cPY= 
-----END CERTIFICATE-----

see the blanks before the “beging and end certificate”

Thanks for the feedback, will try with the space before aswell. The documentation looks like so

and then we also have two certs in the file. so wondering if just a formatting thing