diff --git a/src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs b/src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs index 96867e0f5e9d9b..331594af026fc5 100644 --- a/src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs +++ b/src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs @@ -654,7 +654,6 @@ private void FreeKey() [MemberNotNull(nameof(_key))] private void SetKey(SafeEvpPKeyHandle newKey) { - Debug.Assert(!newKey.IsInvalid); FreeKey(); _key = new Lazy(newKey);