Skip to content

KeyVerification example does not work #37

@vkhazin

Description

@vkhazin

Documentation: https://github.com/Cryptolens/cryptolens-python#key-verification

Running as-is produces the following response: python ./main-sample.py -> The license does not work: Unable to authenticate.. Possibly, the token is no more valid -> update the documentation

Replacing product key IYVOO-JCWXQ-LCRBI-ZAIQZ as documented in getting started: https://help.cryptolens.io/getting-started/create-license produces the following response: python ./main-sample.py -> The license does not work: Unable to authenticate.. Possibly, the token is no more valid -> update the documentation

Replacing access token with my own: The license does not work: Could not find the product.
An understandable mismatch between access token, the public key and product id.

Replacing public key, access token, product id, and product key with my own produces the following response: python ./main.py -> The license does not work:

Environment:
cat /proc/version
Linux version 4.14.200-116.320.amzn1.x86_64 (mockbuild@koji-pdx-corp-builder-60003) (gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC)) #1 SMP Tue Oct 13 10:39:58 UTC 2020
python --version
Python 3.6.12

The same code was attempted on Windows 10 with Python 3.8.3rc1: The license does not work:

Values used:
RSAPubKey = "72XGSSTl0vK+EWGHhDE+pZpnYaOGjTGzDF3NtkbOHPakqsSTm7T1o5BcVyZgyyvCh82CfFG+pRVPBUSRdwS5ZCgk9pkA+L8egHF+zZYr6LEfPUj2bHnxRqSS8O52EnfPlES3EuFGXhQCHvQnlyUPXR0f3PSE1qCunuV9PLHct2LcF/UjcIEZgdLb92x7B/nilCbUWq81NxTmSmWbYyJKRM2xy4H6l4e49uGZdZCG8glWkz/MSutcfX8Dl70flVWeV69MrIOJLQ9ICk35jRNlC00aFuWTlPOYSgj0vfyZj9apEptDxxnKysJOWrVGlrwATGz9NRmGNoW1Xyss7L8IOQ==AQAB"

auth = "--removed--"
product_id=8808
product_key="IPJAE-RKPZO-UDRKQ-AVYSF"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions