Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

License Generator Interactive Mode #23

Merged
merged 21 commits into from
Jun 5, 2019
Merged

Conversation

JeffAlyanak
Copy link
Collaborator

@JeffAlyanak JeffAlyanak commented May 29, 2019

Following the rough plan I laid out in #22, I've implemented the interactive mode for the license generator as part of the push to simplify the use of the tool. The Readme has been updated with the details on using the new mode, as well.

In addition, the tool now optionally accepts a BusinessName parameter for org licenses, solving #21.

More detail is provided in the Readme, but the basic use of interactive mode is as follows:

If you generated your keys in the default BitBetter/.keys directory, you can simply run the license gen in interactive mode from the Bitbetter directory and follow the prompts to generate your license.

./src/licenseGen/run.sh interactive

That's it.

If you wish to run the license gen from a directory aside from the root BitBetter one, you'll have to provide the absolute path to your cert.pfx.

./src/licenseGen/run.sh /Absolute/Path/To/BitBetter/.keys/cert.pfx interactive

Of course, the previous modes of operation still function as they did before.

To make the keygen process a bit easier I've added a `generate-keys.sh` script that can be found in the `.keys` directory. It will generate the key & cert and bundle them into the required pkcs#12 file.

I've updated the readme to include instructions on the script.
Added the generation of a second modified container, bitbetter/identity, which contains the modified dll. Fixes #12.

This works on my testing environment but has not gone through extensive testing. I'd recommend a review and cleanup of this commit before it is merged into the develop or master branches.
I've taken the steps written out by @online-stuff and consolidated/organized them into the README. This closes #13.

In a future update it might be worth adding a docs/ directory and breaking the readme into several docs that link to one another.
Build now checks for and creates missing .keys directories.
Don't overwrite if keys already exist.
Never versions of the dotnet-sdk have issues with older Newtonsoft versions. 12.0.1 seems to satisfy the widest variety of sdk versions.
…ctive-licensegen

Merging changes in anticipation of pull request.
@JeffAlyanak JeffAlyanak self-assigned this Jun 3, 2019
@JeffAlyanak
Copy link
Collaborator Author

Hey @jakeswenson & @online-stuff , on top of the new features, there are a number of outstanding issues that are fixed in this PR. If one of you is able to review it it will help us solve several recent issues.

@jakeswenson
Copy link
Owner

Looks good to me! I wonder if there is a way to reduce some of the nesting in the license generator, but not a major issue.

@JeffAlyanak JeffAlyanak merged commit 6c8789c into master Jun 5, 2019
@JeffAlyanak
Copy link
Collaborator Author

Looks good to me! I wonder if there is a way to reduce some of the nesting in the license generator, but not a major issue.

Yeah, at some point I'm going to try to re-organize the project but I didn't want to do that at the same time as adding a feature.

@JeffAlyanak JeffAlyanak deleted the interactive-licensegen branch June 5, 2019 18:21
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.

None yet

2 participants