“Invalid provider type specified” CryptographicException when trying to load private key of certificate

前端 未结 18 2891
盖世英雄少女心
盖世英雄少女心 2020-11-29 22:04

I\'m trying to read the private key of a certificate which has been shared with me by a third-party service provider, so I can use it to encrypt some XML before sending it t

18条回答
  •  -上瘾入骨i
    2020-11-29 22:57

    For a .net 4.8 WCF service I was getting this error because i hadn't (also) set the httpRuntime version.

    Without the httpRuntime set i was getting the error whenever a secured .net tcp binding was present.

    
        
        
        
    
    

    I had already setup the required permissions in mmc.exe -> add snap-in -> certificates -> personal -> all tasks -> manage private keys -> add [computer name]\IIS_IUSRS (all my application pools are ApplicationPoolIdentity [default] - which is covered by IIS_IUSRS)

提交回复
热议问题