I am writing a very basic http/https server and have all the ground work laid out. it works just fine under normal circumstances. but if a users tries to connect using a different domain or ip that isn't on the certificate the sslstream throws an error and if i just catch the error and use the sslstream anyways any read or write method throws an error.
Is there anyway i can make the sslstream ignore the authentication error or implement a very basic ssl/tls system manually.