REST PKI Python Sample
This folder contains a web application written in Python using the Flask framework, that shows how to use the REST PKI service. The sample application should work on Python versions 2.7 and 3.5.
For other languages, please visit the repository root.
To run the samples, you will need an API access token. If you don't have one, register on the REST PKI website and generate a token.
Running the sample
To run the sample:
Download the project or clone the repository
Generate an API access token on the REST PKI website
Paste your access token on the file
pip install -r requirements.txt
FLASK_APPenvironment variable to define the name of app that should be run:
Run the web application:
Access the URL http://localhost:5000
Optionally, you can create and activate a "virtualenv" to avoid mixing library versions:
virtualenv <venv> source bin/activate (on Windows: ./<venv>/Scripts/activate) pip install -r requirements.txt python manage.py runserver deactivate