You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add workaround for py-vapid cryptography deprecation warning (#793)
Update WebPush.rst to include alternative VAPID key generation method
using ecdsa library directly, addressing compatibility issues with
py-vapid and newer cryptography versions.
Refs: #781
Copy file name to clipboardExpand all lines: docs/WebPush.rst
+52-9Lines changed: 52 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,26 +7,70 @@ These are in addition to the instalation steps for django-push-notifications[WP]
7
7
8
8
Configure the VAPID keys
9
9
------------------------------
10
-
- Install:
10
+
11
+
.. note::
12
+
There is currently a known issue with the ``py-vapid`` library causing deprecation warnings with newer versions of the ``cryptography`` library. While this issue is being resolved upstream (see `py-vapid issue #105 <https://github.com/web-push-libs/vapid/issues/105>`_), we recommend using the alternative method below.
13
+
14
+
**Recommended Method: Generate keys using standalone script**
15
+
16
+
This method uses the ``ecdsa`` library directly and avoids the ``py-vapid`` compatibility issue:
17
+
18
+
- Install the dependency:
19
+
20
+
.. code-block:: bash
21
+
22
+
pip install ecdsa
23
+
24
+
- Create and run this key generation script (shout-out to `@Tobiaqs <https://gist.github.com/Tobiaqs/450a4516ae44813792b7d84028c366c0>`_ for providing this script):
0 commit comments