'Check that the private key and certificate match up
:return: None (raises an exception if something\'s wrong)'

def check_privatekey(self):

    if (not _lib.SSL_CTX_check_private_key(self._context)):
        _raise_current_error()
