def build_cert(raw_cert)
      tmp_cert = ['-----BEGIN CERTIFICATE-----']
      cert_contents = if raw_cert.lines.count == 1
                        one_line_contents(raw_cert)
                      else
                        multi_line_contents(raw_cert)
                      end
      tmp_cert << cert_contents.flatten # put mixed space lines as own elements
      tmp_cert << '-----END CERTIFICATE-----'
      tmp_cert.join("\n").rstrip
    end
def build_cert(raw_cert)
      tmp_cert = ['-----BEGIN CERTIFICATE-----']
      cert_contents = if raw_cert.lines.count == 1
                        one_line_contents(raw_cert)
                      else
                        multi_line_contents(raw_cert)
                      end
      tmp_cert << cert_contents.flatten # put mixed space lines as own elements
      tmp_cert << '-----END CERTIFICATE-----'
      tmp_cert.join("\n").rstrip
    end
Creates a temporary cert and orchestrates certificate body reformatting

 @param raw_cert [String] The string of text you wish to parse into a cert
 @return [String] reformatted and (hopefully) parseable certificate string