jakeswenson / BitBetter

Modify bit warden to provide my own licensing for self hosting
510 stars 115 forks source link

get error when run run.sh license gen #91

Closed robina80 closed 3 years ago

robina80 commented 3 years ago

hi all,

get this error when im running the run.sh script while trying to generate an organisation

/bitwarden/bwdata/BitBetter-master/src/licenseGen/run.sh /bitwarden/bwdata/BitBetter-master/.keys/cert.pfx Specify --help for a list of available options and commands. Oops: Microsoft.Extensions.CommandLineUtils.CommandParsingException: Unrecognized command or argument '/bitwarden/bwdata/BitBetter-master/.keys/cert.pfx' at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.HandleUnexpectedArg(CommandLineApplication command, String[] args, Int32 index, String argTypeName) at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args) at bitwardenSelfLicensor.Program.Main(String[] args) in /licenseGen/Program.cs:line 286

any help would be much appreciated

thanks, rob

captainhook commented 3 years ago

Please read the documentation.

You need to run in either interactive mode: https://github.com/jakeswenson/BitBetter#generating-signed-licenses

or with arguments: https://github.com/jakeswenson/BitBetter#note-alternative-ways-to-generate-license

robina80 commented 3 years ago

ok when i run it interactive it works but manual it doesnt?

/bitwarden/bwdata/BitBetter-master/src/licenseGen/run.sh /bitwarden/bwdata/BitBetter-master/.keys/cert.pfx org robert robertkwild@gmail.com install-id

what am i doing wrong

captainhook commented 3 years ago

What error do you get? Is that definitely the absolute path? Try encapsulating the arg values in double quotes like in the documentation.

robina80 commented 3 years ago

ive tried with quatations but no luck

/bitwarden/bwdata/BitBetter-master/src/licenseGen/run.sh /bitwarden/bwdata/BitBetter-master/.keys/cert.pfx org "robert" "robertkwild@gmail.com" "install-id"

Oops: System.ArgumentNullException: Value cannot be null. (Parameter 's') at System.Double.Parse(String s) at bitwardenSelfLicensor.Program.<>c__DisplayClass0_3.<Main>b__9() in /licenseGen/Program.cs:line 261 at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args) at bitwardenSelfLicensor.Program.Main(String[] args) in /licenseGen/Program.cs:line 286

robina80 commented 3 years ago

ok i know the problem, its the storage value but how do i put that in the string, do i put it in after or before the installation id?

captainhook commented 3 years ago

Type pwd in your shell and share the output

robina80 commented 3 years ago

ok i have done it and it works!!!!!!!!!

/bitwarden/bwdata/BitBetter-master/src/licenseGen/run.sh /bitwarden/bwdata/BitBetter-master/.keys/cert.pfx org "robert" "robertkwild@gmail.com" "install-id" 0

but instead of 0 for storage what is the wildcard for unlimited?