Giter Club home page Giter Club logo

Comments (4)

MakcStudio avatar MakcStudio commented on May 27, 2024 1

i fixed it

var httpClientHandler = new HttpClientHandler
{
// Return true to allow certificates that are untrusted/invalid
ServerCertificateCustomValidationCallback =
HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
};
var httpClient = new HttpClient(httpClientHandler);

from net-core-push-notifications.

MakcStudio avatar MakcStudio commented on May 27, 2024

Hi, please tell me. On my mac, everything works, but as soon as I upload a project to linux with SendAsync, I get an exception:
"The SSL connection could not be established, see inner exception."
Have you ever encountered such a thing? And a few weeks ago everything worked exactly

from net-core-push-notifications.

andrei-m-code avatar andrei-m-code commented on May 27, 2024

Yes, I think @MakcStudio solution should work. It's one of the reasons why we made http client injectable - to make sure users have flexibility of customizing communication settings like this.

from net-core-push-notifications.

RobbiewOnline avatar RobbiewOnline commented on May 27, 2024

Hi,

On Linux, you'll probably have to install the AAACertificate certificate or put it somewhere where the operating system is expecting it, this article should help - it shows a Linux specific section.

In case anyone is using Azure Functions I've found that you can upload the AAA Certificate Services Root (2028) within the Azure portal via the following menu

Home > App Services > Your-function > TLS / SSL > Public Key Certificates (.cer)

Once I performed the above your plugin automatically picked this SSL certificate up without any code tweaks needed. I didn't even need to reboot the server, however, I branched the plugin to detect invalid JTW tokens during a push attempt then force a new JWT refresh. If you're relying on refreshing it every 50 minutes then you may need to restart your function application.

Given the old GeoTrust Global CA root certificate is terminating around March 29th then installing the new AAACertificate above means you shouldn't need to change it until 2028 (my understanding is the certificate is valid from 2020 until 2028) at which point you can expect Apple to send you another certificate before it expires.

from net-core-push-notifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.