“The credentials supplied to the package were not recognized” error when authenticating as server with certificate generated using BouncyCastle

前端 未结 8 2130
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 02:00

I\'m trying to create a certificate using the BouncyCastle.Crypto dll, which is then used to authenticate a SslStream as the server in a Windows Service process, which runs

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 02:49

    I had the similar issue when calling a WCF REST service from .NET application where I need to attach the client certificate; All I had to do was provide access to the certificate in cert store[mmc console] to the "NETWORKSERVICE] off course my IIS Pool was default pool which indicates its using NETWORKService user account.

    the mistake that I did was, I copied the cert from another store to Local Machine -> Personnel store where the certificate was protected with password. should import the certificate explicitly in required store.

提交回复
热议问题