Connect to rest api over ssl(x509) in c#

Hello All,

I have a rest api written in java with ssl .

I need to create a client in C# to connect to this java secure rest endpoint .

I am able to connect to rest client but not over SSL(x509).

Could anyone provide code/tutorial which help me to connect this rest api over ssl(x509).

Thank you,