Hi
I'm using pushsafer API to send notification. For some reason today the notifications have stopped going out. The error is related to "ssl_verification failed" to safer endpoint. If i disable ssl_verification in code then notification goes out. Can you please help resolve issue
ssl verification error
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: ssl verification error
Hello, how you send the notification, can you provide your code!
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Re: ssl verification error
I'm having the same problem for the last few days on my python code. Here is the ss of the error;


- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: ssl verification error
Hello,
can you provide your script for sending notification by pushsafer.
Our SSL Certificate changes every 4 month!
So you have to clean your cache or disable SSL-Verification in your request.
Kevin
can you provide your script for sending notification by pushsafer.
Our SSL Certificate changes every 4 month!
So you have to clean your cache or disable SSL-Verification in your request.
Kevin
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: ssl verification error
Please do not post your private key, i've deleted your image.
What python version you use? Can you provide a little more from your script.
I use Python3.6x and it works without any error.
Thanks Kevin
What python version you use? Can you provide a little more from your script.
I use Python3.6x and it works without any error.
Thanks Kevin
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Re: ssl verification error
Hi Kevin
Thanks for the reply. I have disable ssl verification for now so that we can keep services running. The problem started happening after 30Sep,2021. For more context
https://www.statuscake.com/blog/lets-en ... explained/
How would i clear out cache if i enable ssl verification?
regards
kamran
Thanks for the reply. I have disable ssl verification for now so that we can keep services running. The problem started happening after 30Sep,2021. For more context
https://www.statuscake.com/blog/lets-en ... explained/
How would i clear out cache if i enable ssl verification?
regards
kamran
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: ssl verification error
Hello,
Quote by Let's Encrypt
Discribed here:
https://letsencrypt.org/docs/dst-root-c ... mber-2021/
Kevin
Quote by Let's Encrypt
you have to add their new "ISRG Root X1" certificate on client side or disable the ssl verification on your request.On September 30 2021, there will be a small change in how older browsers and devices trust Let’s Encrypt certificates. If you run a typical website, you won’t notice a difference - the vast majority of your visitors will still accept your Let’s Encrypt certificate. If you provide an API or have to support IoT devices, you might have to pay a little more attention to the change.
Discribed here:
https://letsencrypt.org/docs/dst-root-c ... mber-2021/
Kevin
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: ssl verification error
here an working example:
Code: Select all
from urllib.parse import urlencode
from urllib.request import Request, urlopen
import base64
import requests
# remote image from url
image = base64.b64encode(urlopen("https://www.google.de/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png").read())
post_fields = {
"t" : 'Test',
"m" : 'Test Message',
"s" : 11,
"v" : 3,
"i" : 33,
"c" : '#FF0000',
"d" : 'a',
"u" : 'https://www.pushsafer.com',
"ut" : 'Open Pushsafer',
"k" : '[privatekey]',
"p" : 'data:image/png;base64,'+str(image.decode('ascii')),
}
session = requests.Session()
session.verify = False
session.trust_env = False
response = session.post(url='https://www.pushsafer.com/api', data=post_fields)
print(response.text)
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Who is online
Users browsing this forum: No registered users and 56 guests