Skip to content

fix: Moved cryptoOps.py and scenarios.py into the package#1

Merged
spbsoluble merged 7 commits into
mainfrom
spb_suggestions
Nov 17, 2022
Merged

fix: Moved cryptoOps.py and scenarios.py into the package#1
spbsoluble merged 7 commits into
mainfrom
spb_suggestions

Conversation

@spbsoluble

Copy link
Copy Markdown
Contributor

No description provided.

@spbsoluble

Copy link
Copy Markdown
Contributor Author

I moved the files so that they could be invoked after a pip install of the SDK like so:

from keyfactor_v_1_client.wrappers import keyfactor, cryptoOps
cert = keyfactor.pfx_enroll({"Subject":subject,"Template":template,"SANs":SANs,"Metadata":metadata})
csr,key = cryptoOps.createCSR(subject,SANs)
csrcert = keyfactor.csr_enroll({"CSR":csr,"Template":template,"Metadata":metadata})

Or a full example here: https://github.com/Keyfactor/command-custom-enrollment-form/blob/main/kfc_enrollment_app/signals.py

fix(wrapper): `keyfactor.py` will parse username and pass if no token is provided and will use default parameters for `scheme` and `URLbase`.
Comment thread kfclient/pyproject.toml
description = "A client library for accessing Keyfactor-v1"

version = "v1.0.0"
description = "A client library for accessing Keyfactor Command-v1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The server component is technically just the "Keyfactor" application, but I don't think this will lead to confusion.

@spbsoluble spbsoluble merged commit 3e1bd56 into main Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants