This repository was archived by the owner on Jun 13, 2018. It is now read-only.

Description
The method for creating VAPID keys using node web-push, that is described in the readme, does not work correctly. The tool does not include a padding that is required by BouncyCastle to correctly generate the EC keys. However, they work in the node web-push CLI itself.
I could not find a solution for this issue for a long time because I assumed that the keys are valid. I had to use the web-push-libs/webpush-java CLI to generate the VAPID keys and then it finally worked.
Please update the readme and consider adding CLI for generating keys, like in the webpush-java.