webpush
webpush copied to clipboard
Fix vapid key to_pem
trafficstars
Due to upstream changes in the OpenSSL library, Ruby 2.6.7, 2.7 and all later versions break the method VapidKey#to_pem of this library.
You can read more here: https://github.com/ruby/openssl/issues/437
Without this fix, in the new Ruby versions, the to_pem method would return the private key two times instead of the key pair (private key + public key).
Please merge this fix as soon as possible. Thank you!
@zaru Can you please merge this important bug fix? We have been using our branch for almost 2 years in production, so it's safe to merge.