def one_line_contents(raw_cert)
      # Detect if we have newlines, if not, split on spaces
      cert_contents = if raw_cert.include?('\n')
                        raw_cert.split('\n')
                      else
                        parse_space_delimited_cert(raw_cert)
                      end
      cert_contents.pop   # Remove -----BEGIN CERTIFICATE-----
      cert_contents.shift # Remove -----END CERTIFICATE-----

      cert_contents.map! { |el| el.match('\W+[t|n|r](.*)')[1] }
    end
def one_line_contents(raw_cert)
      # Detect if we have newlines, if not, split on spaces
      cert_contents = if raw_cert.include?('\n')
                        raw_cert.split('\n')
                      else
                        parse_space_delimited_cert(raw_cert)
                      end
      cert_contents.pop   # Remove -----BEGIN CERTIFICATE-----
      cert_contents.shift # Remove -----END CERTIFICATE-----

      cert_contents.map! { |el| el.match('\W+[t|n|r](.*)')[1] }
    end
Attempts to reformat one-line certificate bodies

 @param raw_cert [String] The string of text you wish to parse into a cert
 @return [String] reformatted certificate body