-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect-MgGraph - every now and then ClientCertificateCredential authentication failed: Key not valid for use in specified state. - #2430
Comments
@timayabi2020 Here is more log information: at System.Security.Cryptography.CapiHelper.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) |
It seems to make no difference / it doesn't solve the issue when I use I try it every minute in the meantime, in 10% of the connection tries I got the error message |
Does anybody have an idea to solve the issue? |
Hi @MGBASF I haven't been able to reproduce your issue. However, this looks like a Microsoft Authentication Library (MSAL) issue since it's supposed to refresh the cached access token. |
Hi Tim,
I deleted .graph folder in C:\Users\{your_username} several weeks ago and it hasn’t been re-created. But this hasn’t any impact on my issues ☹
Mit freundlichen Grüßen / kind regards,
Michael Gauch
Global Digital Services – Product: E-mail
Phone: +49 621 60-41595, Mobile: +49 174 3198544, Fax: +49 621 60-6641595, Email: ***@***.***
Postal Address: BASF Digital Solutions GmbH, Global Digital Services, LU-Pfalzgrafenstrasse 1 – 013O20, 67059 Ludwigshafen, Germany
***@***.***
BASF Digital Solutions GmbH, Registered Office: 67061 Ludwigshafen, Germany
Companies' Register: Amtsgericht Ludwigshafen, HRB 3541
Managing Directors:
Stefan Beck, Petra Scheithe
Chairman of the Supervisory Board: Christoph Wegner
Information on data protection can be found here: https://www.basf.com/global/en/legal/data-protection-at-basf.html
From: Tim ***@***.***>
Sent: Tuesday, December 19, 2023 10:54 AM
To: microsoftgraph/msgraph-sdk-powershell ***@***.***>
Cc: Michael Gauch ***@***.***>; Mention ***@***.***>
Subject: [EXT] Re: [microsoftgraph/msgraph-sdk-powershell] Connect-MgGraph - every now and then ClientCertificateCredential authentication failed: Key not valid for use in specified state. - (Issue #2430)
You don't often get email from ***@***.******@***.***>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Hi @MGBASF<https://github.com/MGBASF> I haven't been able to reproduce your issue. However, this looks like a Microsoft Authentication Library (MSAL) issue since it's supposed to refresh the cached access token.
For now, could you try deleting .graph folder in C:\Users\{your_username}\ and try again.
—
Reply to this email directly, view it on GitHub<#2430 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BD332DJNTSEZ3ELXNGEWRJ3YKFP2HAVCNFSM6AAAAAA7GJSIT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSGQ2DMMZTGE>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi @MGBASF , Does the issue still persist? If so, could you please test with the latest SDK version i.e. 2.19 and share the output? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
bump |
Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Debug Output
Module Version
Script 2.8.0 Microsoft.Graph.Authentication {Add-MgEnvironment, Connect-MgGraph, Disconnect-MgGraph, Get-MgContext...}
Script 2.8.0 Microsoft.Graph.Security {Add-MgSecurityCaseEdiscoveryCaseCustodianHold, Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold, Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag, Add-MgSecurit...
Environment Data
PSVersion 7.3.9
PSEdition Core
GitCommitId 7.3.9
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: