I am trying to explore SQL 2016 always encrypted feature but i am getting an error while generating new column master key, after entering name and selecting 'Windows Certificate Store-Current User' as key store through SSMS when i click on ok its throwing an error as object reference not set to an instance sql(sqlmanagerui)
I googled it and checked the permission on registry but unable to solve this.
SQL Server 2016 – Error Creating CMK (Column Master Key) in Always Encrypted
always-encryptedsql-server-2016
Related Question
- Sql-server – Error 71501, 71561 while encrypting columns using always encrypted feature of SQL Server 2016
- Sql-server – How to renew or extend the CMK Certificate in Always Encrypted feature
- Sql-server – How to rotate the CMK of Always Encrypted using SSMS
- SQL Server Encryption – Microsoft Key Storage Provider for Always Encrypted Master Key
- Sql-server – Always Encrypted column validation
- SQL Server – Keyset Does Not Exist for Domain Certificate Authority Generated Certificate
Best Answer
These kind of errors occur when there is something corrupt in windows, so please try repair sql server by running setup and also please do check if there is any pending reboot or an updates pending. I have face same kind of problem and it was due to pending update so its something to deal with the registry