Hi list!
We are trying to send webpush messages with the naviserver webpush moule
(webpush::send). It used to work fine a few months ago.
Now we have the following problem: When sending an empty push message with:
setmessage{}
setret [webpush::send \
-subscription $subscription_list\
-data $message\
-claim [listsub mailto:${claim_email}] \
-privateKeyPem [dictget $channelprivate_key_path] \
-mode aesgcm \
-timeout 3\
-ttl $ttl\
]
we get a proper desktop notification with "No message!" body.
When we try to enter a message, the call returns with a status of 201,
but no notification is shown.
We also tried the demo here:
https://openacs.org/webpush-demo/webpush-demo.tcl
The empty message works ("Naviserver rocks!"), but with a message, we
get an error:
"could not derive EC point from provided key could not derive EC point
from provided key "
After a bit of code exploration, we noticed, that the call to
"::ns_crypto::aead::encrypt"
in webpush::encrypt returns an empty result for "bytes".
So we've tried the examples from
https://naviserver.sourceforge.io/n/naviserver/files/ns_crypto.html#1
which get the same result.
ns_crypto::aead::encrypt string -cipher aes-128-gcm -iv 123456789 -key
secret "hello world"
returns
bytes {} tag ecb7f31df9e12b6118c1d8fcd5b7534a
instead of
bytes fa260f97eae35e3e3df0b7 tag 93654f78fd189b559c091acb410a0040
Any insights would be highly appreciated.
Regards,
Wolfgang
--
*Wolfgang Winkler*
Geschäftsführung
wolfgang.wink...@digital-concepts.com
mobil +43.699.19971172
dc:*büro*
digital concepts Novak Winkler OG
Software & Design
Landstraße 68, 5. Stock, 4020 Linz
www.digital-concepts.com <http://www.digital-concepts.com>
tel +43.732.997117.72
tel +43.699.1997117.2
Firmenbuchnummer: 192003h
Firmenbuchgericht: Landesgericht Linz
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel