lib/sepa/utilities.rb
def format_cert_request(cert_request)
      cert_request = cert_request.split('-----BEGIN CERTIFICATE REQUEST-----')[1]
      cert_request = cert_request.split('-----END CERTIFICATE REQUEST-----')[0]
      cert_request.gsub!(/\s+/, "")
    end
# Removes begin and end certificate request texts from a certificate signing request and removes
# whitespaces
#
# @param cert_request [String] the certificate request to be formatted
# @return [String] the formatted certificate request
# @todo rename
Removes begin and end certificate request texts from a certificate signing request and removes
whitespaces
Removes begin and end certificate request texts from a certificate signing request and removes whitespaces
def format_cert_request(cert_request)
      cert_request = cert_request.split('-----BEGIN CERTIFICATE REQUEST-----')[1]
      cert_request = cert_request.split('-----END CERTIFICATE REQUEST-----')[0]
      cert_request.gsub!(/\s+/, "")
    end
def format_cert_request ( cert_request ) cert_request = cert_request . split ( '-----BEGIN CERTIFICATE REQUEST-----' ) [ 1 ] cert_request = cert_request . split ( '-----END CERTIFICATE REQUEST-----' ) [ 0 ] cert_request . gsub! ( / \s + / , "" ) end
Removes begin and end certificate request texts from a certificate signing request and removes
whitespaces
Removes begin and end certificate request texts from a certificate signing request and removes whitespaces
the formatted certificate request
the formatted certificate request
String
cert_request
the certificate request to be formatted
the certificate request to be formatted
todo
None