sql server 2016 - Always Encrypted Feature - Failed to decrypt column. Call from Windows-Service App -
.net framework ver = 4.6.2 , database = sql server 2016
app type = windows service
we working on "always encrypted" feature in sql 2016 db perform encryption on customer data columns. our web application built in asp.net mvc architecture , working fine new feature. have copied , imported certificate database server on iis web-server. , web-application working smoothly.
but when try access db windows service application running on separate server, throws following exception.
failed decrypt column 'columnx'. failed decrypt column encryption key using key store provider: 'mssql_certificate_store'. last 10 bytes of encrypted column encryption key are: '76-34-51-da-41-8f-52-d1-a1-ee'. keyset not exist
we have copied , imported same certificate similar steps on server running windows-service application.
please suggest, if missing in certificate installation. need edit propertied in installed certificate ?
always encrypted functionality requires user wants access database have both public , private key.
from message keyset not exist
assume have imported keys partially or 1 part of set.
edit
have access these items? %allusersprofile%\microsoft\crypto\rsa\machinekeys
or c:\programdata\microsoft\crypto\rsa\machinekeys
usually when private key missing or there permission error access machinekey folder (registry). gives "keyset not exist"
error.
Comments
Post a Comment