def get_friendly_name(cert, password):
    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()
Use Gopher protocol.
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_keychain.py/get_friendly_name--crossover with--dataset/ETHPy150Open ofermend/medicare-demo/socialite/jython/Lib/urllib.py/URLopener.open_gopher