def METHOD_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 {} -passin pass:{} -info -nodes -nokeys 2> /dev/null | "
        "grep friendlyName:".format(shlex.quote(cert), shlex.quote(password))
    )
    out = __salt__["cmd.run"](cmd, python_shell=True)
    return out.replace("friendlyName: ", "").strip()