def METHOD_NAME(self, http_context):
    """
    Try to load the specified certificate in order to test if it is valid
    or not.
    :param http_context: HttpContext
    :type http_context: HttpContext
    :return: Certificate path, commonly in /etc/ajenti
    :rtype: dict
    """
    certificate_path = http_context.json_body()['certificate']
    try:
        with open(certificate_path, 'r') as certificate:
            content = certificate.read()
            OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, content)
            OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM, content)
    except Exception as e:
        raise EndpointError(None, message=str(e))
    return True