def _server_connection(self, callback, data):
    '\n        Builds a server connection suitable for using OCSP.\n\n        :param callback: The callback to register for OCSP.\n        :param data: The opaque data object that will be handed to the\n            OCSP callback.\n        '
    ctx = Context(SSLv23_METHOD)
    ctx.use_privatekey(load_privatekey(FILETYPE_PEM, server_key_pem))
    ctx.use_certificate(load_certificate(FILETYPE_PEM, server_cert_pem))
    ctx.set_ocsp_server_callback(callback, data)
    server = Connection(ctx)
    server.set_accept_state()
    return server
Builds a server connection suitable for using OCSP.

:param callback: The callback to register for OCSP.
:param data: The opaque data object that will be handed to the
    OCSP callback.
def _server_connection(self, callback, data):
    '\n        Builds a server connection suitable for using OCSP.\n\n        :param callback: The callback to register for OCSP.\n        :param data: The opaque data object that will be handed to the\n            OCSP callback.\n        '
    ctx = Context(SSLv23_METHOD)
    ctx.use_privatekey(load_privatekey(FILETYPE_PEM, server_key_pem))
    ctx.use_certificate(load_certificate(FILETYPE_PEM, server_cert_pem))
    ctx.set_ocsp_server_callback(callback, data)
    server = Connection(ctx)
    server.set_accept_state()
    return server