Vapid migration not working (Error Added)?

I noticed the other day that GCM will be ending soon and we need to migrate over to Vapid in order to continue functionality. I did that but messages are not being sent via push. I followed the steps and have all the keys. I’m not getting any errors in the log that I know of, but nothing is being sent.

Any ideas where to start?

EDIT: So this is the error I’m getting (finally something)

2019-05-05 19:37:27 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1971502352] Could not deserialize key data.
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/websocket_api/commands.py", line 122, in handle_call_service
    connection.context(msg))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1138, in async_call
    self._execute_service(handler, service_call))
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1160, in _execute_service
    await handler.func(service_call)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/notify/__init__.py", line 117, in async_notify_message
    await notify_service.async_send_message(**kwargs)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/html5/notify.py", line 458, in send_message
    self._push_message(payload, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/html5/notify.py", line 495, in _push_message
    vapid_claims=self._vapid_claims
  File "/srv/homeassistant/lib/python3.5/site-packages/pywebpush/__init__.py", line 372, in webpush
    vv = Vapid.from_string(private_key=vapid_private_key)
  File "/srv/homeassistant/lib/python3.5/site-packages/py_vapid/__init__.py", line 143, in from_string
    return cls.from_der(pkey)
  File "/srv/homeassistant/lib/python3.5/site-packages/py_vapid/__init__.py", line 100, in from_der
    backend=default_backend())
  File "/srv/homeassistant/lib/python3.5/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 28, in load_der_private_key
    return backend.load_der_private_key(data, password)
  File "/srv/homeassistant/lib/python3.5/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1100, in load_der_private_key
    password,
  File "/srv/homeassistant/lib/python3.5/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1271, in _load_key
    self._handle_key_loading_error()
  File "/srv/homeassistant/lib/python3.5/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1329, in _handle_key_loading_error
    raise ValueError("Could not deserialize key data.")
ValueError: Could not deserialize key data.

Got the same thing.

EDIT: was my fault, made copy/paste error with my !secret reference. I was using the public key for both public and private. Changed it, rebooted and started working.

1 Like