We extract raw tls certificate and we need to pass the certificate to a
program with proper format of the cert - new line characters to extract
information about certificate.Used below snippet in js and trying to get
complete string but facing issues...