1
0
mirror of https://github.com/jakeswenson/BitBetter.git synced 2023-10-10 13:36:57 +02:00
Go to file
2018-11-21 20:17:39 -07:00
.circleci type; fix build 2017-10-29 12:16:28 -07:00
.keys adding license gen 2017-10-29 09:57:49 -07:00
src Update Program.cs 2018-11-21 20:17:39 -07:00
.gitignore adding license gen 2017-10-29 09:57:49 -07:00
build.sh typo 2017-10-29 12:19:20 -07:00
README.md update readme 2017-10-29 12:51:53 -07:00

BitBetter

CircleCI

This project is a tool to modify bitwardens core dll to allow me to self license. Beware this does janky IL magic to rewrite the bitwarden core dll and install my self signed certificate.

Building

To build your own bitwarden/api image run

./build.sh

replace anywhere bitwarden/api is used with bitbetter/api and give it a go. no promises

Issuing your own licenses

The repo is setup to replace the licesning signing cert in bitwarden.core with my own personal self signed cert (cert.cert) If you want to be able to sign your own licenses obviously you'll have to replace it with your own self signed cert.

you can generate one with openssl like so:

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.cert -days 36500 -outform DER

Convert your DER certificate to a PEM

openssl x509 -inform DER -in cert.cert -out cert.pem

Convert your public and private key into a PKCS12/PFX

openssl pkcs12 -export -out cert.pfx -inkey key.pem -in cert.pem

Signing licesnses

There is a tool included to generate a license (see src/liceseGen/)

generate a PFX above using a password of test and then build the tool using:

./src/licenseGen/build.sh

This tool build ontop of the bitbetter/api container image so make sure you've built that above using the root ./build.sh script.

After that you can run the tool using:

./src/LicenseGen/run.sh <PATH TO YOUR PFX>

Questions (you might have?)

But why? Its open source?

Yes, bitwarden is great. If I didn't care about it i wouldn't be doing this. I was bothered that if i want to host bitwarden myself, at my house, for my family to use (with the ability to share access) I would still have to pay a monthly ENTERPRISE organization fee. To host it myself. And maintain it myself. Basically WTH was bitwarden doing that I was paying them for?

You should have reached out to bitwarden

Thanks, good idea. And I did. Currently they're not focused on solving this issue - yet. To be clear i'm totally happy to give them my money. Offer a perpetual family license, and i'd pay for it. Offer me a license thats tied to a version, I'll gladly rebuy another when a new version comes out AND i'm ready to upgrade.

I provided all these suggestions to bitwarden and they told me to wait until next year. Until then there's this.