@S Abijith , Welcome to Microsoft Q&A, based on my search, you could try to use VerifyServerCertificateCallback to validate the related information about you mentioned.
Please refer to the code example in the answer to know more about it.
Hope it could help you.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.