gpt4 book ai didi

c# - 始终加密 : Failed to decrypt a column encryption key using key store provider: 'MSSQL_CERTIFICATE_STORE'

转载 作者:太空狗 更新时间:2023-10-29 21:26:16 27 4
gpt4 key购买 nike

我在我的 Web 应用程序中执行始终加密,该应用程序通过窗口服务托管的 WCF 服务插入数据。将数据插入加密列时出现以下错误。

Failed to decrypt a column encryption key using key store provider: 'MSSQL_CERTIFICATE_STORE'. The last 10 bytes of the encrypted column encryption key are: '64-56-87-3B-EC-2E-11-9D-2A-B5'.Certificate with thumbprint 'A0D10777759BBD947EEA6F3F5D1A7989514C45F0' not found in certificate store 'My' in certificate location 'CurrentUser'. Verify the certificate path in the column master key definition in the database is correct, and the certificate has been imported correctly into the certificate location/store.Parameter name: masterKeyPath

最佳答案

这个问题的解决方案是

  1. 运行 (MMC)
  2. 在快照控制台中选择证书。
  3. 找到您始终加密的证书,可以是我的用户,也可以是机器帐户
  4. 右键->所有任务->管理私钥。
  5. 添加正在建立 SQL 连接的 windows 用户。
  6. 用户可以是进程用户,可以是IIS,也可以是任何windows登录用户。

它解决了我的问题。

关于c# - 始终加密 : Failed to decrypt a column encryption key using key store provider: 'MSSQL_CERTIFICATE_STORE' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46975213/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com