'Set version number of the certificate
:param version: The version number
:type version: :py:class:`int`
:return: None'

def set_version(self, version):

    if (not isinstance(version, int)):
        raise TypeError('version    must    be    an    integer')
    _lib.X509_set_version(self._x509, version)
