code: def get_friendly_name(cert, password):
      '''
      Get the friendly name of the given certificate
  
      cert
          The certificate to install
  
      password
          The password for the certificate being installed formatted in the way
          described for openssl command in the PASS PHRASE ARGUMENTS section
  
          Note: The password given here will show up as plaintext in the returned job
          info.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keychain.get_friendly_name /tmp/test.p12 test123
      '''
      cmd = 'openssl pkcs12 -in {0} -passin pass:{1} -info -nodes -nokeys 2> /dev/null | ' \
            'grep friendlyName:'.format(_quote(cert), _quote(password))
      out = __salt__['cmd.run'](cmd, python_shell=True)
      return out.replace("friendlyName: ", "").strip(f get_friendly_name(cert, password):
      '''
      Get the friendly name of the given certificate
  
      cert
          The certificate to install
  
      password
          The password for the certificate being installed formatted in the way
          described for openssl command in the PASS PHRASE ARGUMENTS section
  
          Note: The password given here will show up as plaintext in the returned job
          info.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keychain.get_friendly_name /tmp/test.p12 test123
      '''
      cmd = 'openssl pkcs12 -in {0} -passin pass:{1} -info -nodes -nokeys 2> /dev/null | ' \
            'grep friendlyName:'.format(_quote(cert), _quote(password))
      out = __salt__['cmd.run'](cmd, python_shell=True)
      return out.replace("friendlyName: ", "").strip()
docs: Get the friendly name of the given certificate
  
      cert
          The certificate to install
  
      password
          The password for the certificate being installed formatted in the way
          described for openssl command in the PASS PHRASE ARGUMENTS section
  
          Note: The password given here will show up as plaintext in the returned job
          info.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keychain.get_friendly_name /tmp/test.p12 test123