You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
Hello,
I'm trying to get an MSAL Token from a third party API via Powershell on linux, using the code below. I uploaded my .crt certificate to /etc/ssl/certs/
ERROR However i get the error below... altough i think there is nothing wrong with my certificate :
Get-MsalToken: Cannot process argument transformation on parameter 'ClientCertificate'. Cannot convert the "/etc/ssl/certs/<>" value of type "System.IO.FileInfo" to type "System.Security.Cryptography.X509Certificates.X509Certificate2"
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I'm trying to get an MSAL Token from a third party API via Powershell on linux, using the code below. I uploaded my .crt certificate to /etc/ssl/certs/
CODE :
Import-Module MSAL.PS
Import-Module JWTDetails
$clientID = '...'
$tenantID = '...'
$ClientCertificateLocation = '/etc/ssl/certs/<>'
$ClientCertificate = Get-Item $ClientCertificateLocation
$tokenScope = '...'
$myAccessToken = Get-MsalToken -ClientId $clientID -TenantId $tenantID -ClientCertificate $ClientCertificate -Scope $tokenScope
ERROR
However i get the error below... altough i think there is nothing wrong with my certificate :
Get-MsalToken: Cannot process argument transformation on parameter 'ClientCertificate'. Cannot convert the "/etc/ssl/certs/<>" value of type "System.IO.FileInfo" to type "System.Security.Cryptography.X509Certificates.X509Certificate2"
The text was updated successfully, but these errors were encountered: