'Replace or set the certificate portion of the PKCS12 structure
:param name: The new friendly name.
:type name: :py:class:`bytes`
:return: None'

def set_friendlyname(self, name):

    if (name is None):
        self._friendlyname = None
    elif (not isinstance(name, bytes)):
        raise TypeError(('name    must    be    a    byte    string    or    None    (not    %r)' % (name,)))
    self._friendlyname = name
