2017-10-19 19:19:24 +02:00
|
|
|
# BitBetter
|
2017-10-22 19:48:35 +02:00
|
|
|
[![CircleCI](https://img.shields.io/circleci/project/github/jakeswenson/BitBetter.svg)](https://circleci.com/gh/jakeswenson/BitBetter/tree/master)
|
2017-10-19 19:19:24 +02:00
|
|
|
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.
|
|
|
|
|
2017-10-19 23:50:28 +02:00
|
|
|
## Building
|
|
|
|
|
|
|
|
There's no formal build script/process yet. To build your own `bitwarden/api` image run
|
|
|
|
```bash
|
|
|
|
dotnet restore
|
|
|
|
dotnet publish
|
|
|
|
docker build . -t bitbetter/api
|
|
|
|
```
|
|
|
|
|
|
|
|
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:
|
|
|
|
```bash
|
|
|
|
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.cert -days 36500 -outform DER
|
|
|
|
```
|
|
|
|
|
2017-10-19 23:57:03 +02:00
|
|
|
### Signing licesnses
|
|
|
|
|
|
|
|
I leave this up to the reader. They're just JSON files, with a signature section. All the code is open source.
|
|
|
|
I'll add a tool in the future to just do it for you.
|
|
|
|
|
|
|
|
# Questions (you might have?)
|
|
|
|
|
2017-10-19 19:19:24 +02:00
|
|
|
## 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.
|
2017-10-19 23:50:28 +02:00
|
|
|
To host it myself. And maintain it myself. Basically WTH was bitwarden doing that I was paying them for?
|
2017-10-19 19:19:24 +02:00
|
|
|
|
|
|
|
## 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.
|