parameters: (der_cert_bytes)
docstring: Takes a certificate in binary DER format and returns the
      PEM version of it as a string.
docstring_summary: Takes a certificate in binary DER format and returns the
      PEM version of it as a string.
docstring_tokens: Takes a certificate in binary DER format and returns the PEM version of it as a string .
function: def DER_cert_to_PEM_cert(der_cert_bytes):
  
      """Takes a certificate in binary DER format and returns the
      PEM version of it as a string."""
  
      if hasattr(base64, 'standard_b64encode'):
          # preferred because older API gets line-length wrong
          f = base64.standard_b64encode(der_cert_bytes)
          return (PEM_HEADER + '\n' +
                  textwrap.fill(f, 64) +
                  PEM_FOOTER + '\n')
      else:
          return (PEM_HEADER + '\n' +
                  base64.encodestring(der_cert_bytes) +
                  PEM_FOOTER + '\n')
function_tokens: def DER_cert_to_PEM_cert ( der_cert_bytes ) : if hasattr ( base64 , 'standard_b64encode' ) : # preferred because older API gets line-length wrong f = base64 . standard_b64encode ( der_cert_bytes ) return ( PEM_HEADER + '\n' + textwrap . fill ( f , 64 ) + PEM_FOOTER + '\n' ) else : return ( PEM_HEADER + '\n' + base64 . encodestring ( der_cert_bytes ) + PEM_FOOTER + '\n' )