def pkcs11_get_data(pkcs11, slot_id):
    """
    Returns references to private key and certificate stored on the slot_id of
    the smart card.
    """
    private_key = pkcs11.load_private_key(slot_id)
    cert = pkcs11.load_certificate(slot_id)
    return private_key, cert
