Azure Notification Hub Exception:Error: 4668:error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version:openssl\\ssl\\s23_clnt.c:658:\n]

Patil, Deepak 1 Reputation point
2021-01-28T14:00:36.75+00:00

var azure = require('azure');

var hub = azure.createNotificationHubService('hubName','connectionString');

getting error on hub.listRegistrationsByTag(userId, registerPushIdentifier);

message":"[Error: 22432:error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version:openssl\ssl\s23_clnt.c:658:\n]"}

It was working fine till 13th Jan. I also set the Minimum TLS version is 1.2 and changed the target framework to 4.8 but still getting the same error

This is URGENT!

Do you have any suggestions?

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
265 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,920 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,981 Reputation points Microsoft Employee
    2021-02-01T21:35:15.677+00:00

    Hi @Patil, Deepak ,

    Thanks for reaching out to. Per our discussion, it was determined you were using https://www.npmjs.com/package/azure which has been deprecated and advised to switch to https://www.npmjs.com/package/@azure/arm-notificationhubs. See https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-nodejs-push-notification-tutorial#import-the-module to get started.

    If you encounter any issues, please feel free to back to the email you were originally sent.

    Regards,
    Ryan

    0 comments No comments