@jet
I am actually having this cannot read certificate error from the PowerShell CLI. Any suggestions?
-----
Yes, the only suggestion I can give right now is to provide your code. Otherwise its like asking help to solve "who killed Martha" when you haven't even told what is the story.
You said said you have tried different ways. So provide some of those ways and we can see what mistakes were being made.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.