Getting SSL Cerificate Issue(Xamarin.ios) - xamarin.ios

I am getting below error can anyone help me out this.
the certificate for this server is invalid. You might be connecting to a server that is pretending to be “ciadfs1.xxxxx.com” which could put your confidential information at risk."

Related

Axios CERT_HAS_EXPIRED error when connecting to an API, but only from 1 server

I've got a node 7.7.4 app that connects to an API on another server. It's a POST to get an auth token, using Axios.
Today I started getting an error saying certificate has expired, and in the logs I found the following error when logging the axios response.
{ Error: certificate has expired
at TLSSocket.<anonymous> (_tls_wrap.js:1094:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:188:7)
at TLSSocket._finishInit (_tls_wrap.js:616:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:446:38)
code: 'CERT_HAS_EXPIRED',
...
The only answers I've found online seem to point to the cert error on the API site, but I checked the API server and things seem good. I ran a local instance of the app as well and don't get the error, I was also able to connect with Talend - no errors.
Node is running on an Ubuntu server behind Nginx - it seems like the cert error must originate on the Node server, but I've got no idea how to renew/refresh it - the SSL cert for the actual website is fine.
I've also checked the time settings, rebooted the server, run update/upgrade, with no luck.
I tested NODE_TLS_REJECT_UNAUTHORIZE=0 to see if it works (it does), but that's certainly not something I want to turn on in production for more than a quick test.
Any idea what cert is expired and how to fix it?
I was getting this error because the Sectigo Root certificate happened to expire on the server I was connecting to. Browsers are better at dealing with an expired cert in the chain,. Axios/OpenSSL are pickier. I used this page as a guide to getting it sorted out.
Fixing the Breakage from the AddTrust External CA Root Expiration

How to tell if a TLS server requested a client certificate

I'm making TLS client connections in Node.js. Some servers I communicate with request a client certificate. I'd like to be able to detect when this has been requested, so I can log it. At the protocol level I believe this is sent along with the TLS server hello, so the data is there, but I'm not sure how I can get at it.
I'm never actually providing a client certificate for now, I'm just aiming to report which servers requested one.
I think there's probably two cases here:
A cert has been requested, not provided, and the server has accepted the connection anyway (and then probably given my some kind of 'not authenticated' response).
A cert has been requested, not provided, and the server has rejected the TLS connection entirely.
At the moment I can't detect either case, solutions for either or both very welcome.

self signed certificate for implementing https

I have a server with public IP and hold a website on it. I don't have a domain and my web server is IIS, then I created a self signed certificate in the server and bind it to my website. When I want to access to my website using a link like http://.../test. I can access to the website with https in localhost in the server. but I can't access to the website from a client browser with httpsand I get this error in client browser:ERR_SSL_VERSION_OR_CIPHER_MISMATCH
Your server most likely doesn't support TLS (v1.0 or higher) but only SSLv3. That's a common cause for this error. SSLv3 is blocked in most browsers because of the POODLE vulnerability (CVE-2014-3566). You should review your server settings and upgrade them accordingly.
You can test your website at the awesome SSL Test from SSL Labs. This will point out errors like these and it helps you create a secure config. Please keep in mind that any score below A is in urgent need of improvement.
I found out to solve it. Port 443 was closed in the server.

Mozilla-libnss failed to find the certificate

Can anyone please help me to fix the below issue?
I am using libnss to implement tls connection between a server and a client,
Both are being run on a single machine.
First I tried to run ./certutil exe, I got the below output on console
Certificate Nickname Trust Attributes
SSL,S/MIME,JAR/XPI
Then I tried running the server that is ./selfserv , but I got one error shown below, here -n (nickname) I am passing as SSL.
Is that right ? or what exactly going wrong here?
selfserv: Can't find certificate SSL
Also please explain me how to execute the server and client using mozilla nss with simple steps

SocketIO4NET with SSL

Getting "error initializing handshake" with the SocketIO4Net library when I try to connect using my https node/socket.io connection over SSL. Is SSL/WSS supported with SocketIO4Net?
SocketIO4Net with plain http works, and standard Socket.IO in JavaScript over plain http and over https SSL works. But not SocketIO4Net with SSL, yet. Must be missing something, but challenge debugging this one.
The source seems to indicate the message "Error Initializing handshake" means it's missing the socket id when it tries to connect to the node/socket server. Any ideas?
Got SocketIO4Net to work with SSL too. Needed to import the Self-Signed Cert into the Cert Auth chain on our QA middleware box that was running SocketIO4Net and calling our node server. Works great now!

Resources