久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='Wsxql'></bdo><ul id='Wsxql'></ul>
  • <tfoot id='Wsxql'></tfoot>

      <small id='Wsxql'></small><noframes id='Wsxql'>

      <legend id='Wsxql'><style id='Wsxql'><dir id='Wsxql'><q id='Wsxql'></q></dir></style></legend>

      <i id='Wsxql'><tr id='Wsxql'><dt id='Wsxql'><q id='Wsxql'><span id='Wsxql'><b id='Wsxql'><form id='Wsxql'><ins id='Wsxql'></ins><ul id='Wsxql'></ul><sub id='Wsxql'></sub></form><legend id='Wsxql'></legend><bdo id='Wsxql'><pre id='Wsxql'><center id='Wsxql'></center></pre></bdo></b><th id='Wsxql'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Wsxql'><tfoot id='Wsxql'></tfoot><dl id='Wsxql'><fieldset id='Wsxql'></fieldset></dl></div>

        如何授予 SQL Server 讀取 SSL 密鑰的權限?

        How can I give SQL Server permission to read my SSL Key?(如何授予 SQL Server 讀取 SSL 密鑰的權限?)
          <tbody id='j6Ci5'></tbody>

        <legend id='j6Ci5'><style id='j6Ci5'><dir id='j6Ci5'><q id='j6Ci5'></q></dir></style></legend>
      1. <small id='j6Ci5'></small><noframes id='j6Ci5'>

          <tfoot id='j6Ci5'></tfoot>
            <bdo id='j6Ci5'></bdo><ul id='j6Ci5'></ul>

              <i id='j6Ci5'><tr id='j6Ci5'><dt id='j6Ci5'><q id='j6Ci5'><span id='j6Ci5'><b id='j6Ci5'><form id='j6Ci5'><ins id='j6Ci5'></ins><ul id='j6Ci5'></ul><sub id='j6Ci5'></sub></form><legend id='j6Ci5'></legend><bdo id='j6Ci5'><pre id='j6Ci5'><center id='j6Ci5'></center></pre></bdo></b><th id='j6Ci5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='j6Ci5'><tfoot id='j6Ci5'></tfoot><dl id='j6Ci5'><fieldset id='j6Ci5'></fieldset></dl></div>

                • 本文介紹了如何授予 SQL Server 讀取 SSL 密鑰的權限?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我最近創建了一個自簽名證書并在 SQL Server 2014 中打開了加密:

                  問題是現在SQL Server服務無法啟動:

                  當我打開文章中顯示的窗口時,沒有與建議格式匹配的組或用戶名.

                  是否有其他方法可以確定運行 SQL Server 服務的帳戶,以便我可以授予它讀取 SSL 證書的權限?

                  也歡迎采用完全不同的解決方案.

                  解決方案

                  如果你指定了證書,SQL Server 應該使用該證書,那么 SQL Server windows 服務必須讀取證書和私有證書密鑰(文件夾 %ProgramData%\Microsoft\Crypto\RSA\MachineKeys 中的文件),與證書對應.問題是:SQL Server 配置管理器不舒服,無法完成所有必需的工作.

                  因此,首先應該本地化 SQL Server 使用的帳戶.一要啟動services.msc,找到SQL Server服務的賬號.它通常是一個內置帳戶,例如 Local SystemNetwork Service 本地或域帳戶,例如 .\SQLServerDOMAIN\SQLServerAccount 或下圖中的 NT Service\NT Service\MSSQL$SQL2012 之類的服務帳戶:

                  要授予帳戶私鑰的權限,可以使用 mmc 的證書管理單元.可以啟動mms.exe,在文件"菜單中選擇添加/刪除管理單元",選擇證書"管理單元,選擇本地計算機的計算機帳戶".然后選擇個人存儲的 SSL 證書,然后使用上下文菜單管理私鑰...".

                  并添加像上面找到的NT Service\NT Service\MSSQL$SQL2012這樣的帳戶,并在私鑰上為該帳戶設置讀取"權限:

                  如果您想與域內的 SQL 服務器建立連接(客戶端和服務器都必須屬于同一個 Active Directory 或通過信任連接的目錄),那么應該為SQL 服務器.如果我正確理解您的要求,您希望允許刪除通過 HTTPS 連接到 SQL Server.必須激活混合安全才能通過 SQL Server 身份驗證連接到服務器:

                  創建 SQL 登錄后,將上述所有內容更改并重新啟動 SQL Server 服務,將能夠與 SQL Server 建立 TLS(加密)連接.如果在之前未創建 SPN 的情況下嘗試通過 Windows 帳戶進行連接,則會出現錯誤:

                  <塊引用>

                  已成功與服務器建立連接,但隨后出現登錄過程中發生錯誤.(提供者:SSL 提供者,錯誤:0 - 目標主體名稱不正確.)(Microsoft SQL服務器,錯誤:-2146893022)

                  目標主體名稱不正確

                  如果忘記將 Windows 身份驗證更改為混合身份驗證 (),則會出現類似錯誤

                  <塊引用>

                  用戶OlegKi"登錄失敗.(Microsoft SQL Server,錯誤:18456)

                  如果以上所有步驟都完成了,例如可以使用 SQL Management Studio 建立 TLS 連接,但仍然需要選擇一些選項:

                  應該勾選加密連接"

                  并設置附加連接屬性 TrustServerCertificate=true

                  通常使用 Encrypt=true;TrustServerCertificate=true; 作為應用程序中連接字符串的一部分,用于建立與 SQL 服務器的連接.我們通過上面描述的加密連接"復選框設置 Encrypt=true 屬性.可以在

                  我在上面已經在另一種情況下(與 Windows 帳戶的連接)進行了描述.

                  我描述了以上所有步驟,因為配置到服務器的TLS連接真的不是那么容易,并且可能會出現奇怪的錯誤,直接描述沒有直接提示如何解決問題.

                  I recently created a self-signed certificate and turned encryption on in SQL Server 2014:

                  The problem is that now the SQL Server service won't start:

                  This article from 2010 identifies the problem as a permissions issue: The SQL Server service does not have the necessary permission to read the SSL cert's private key.

                  The problem is that I am stuck on step 4 of the solution proposed in the article:

                  There is no group or user name matching the proposed format when I bring up the window shown in the article.

                  Is there another way I can determine the account that SQL Server service runs under, so that I can give it permissions to read the SSL cert?

                  An entirely different solution is welcome too.

                  解決方案

                  If you specify the certificate, which should be used for TLS by SQL Server, then the SQL Server windows service have to read the certificate and the private key (the file from the folder %ProgramData%\Microsoft\Crypto\RSA\MachineKeys), which corresponds the certificate. The problem is: the SQL Server Configuration Manager in not comfortable and it makes not all the required work.

                  Thus first of all one should localize the Account used by SQL Server. One should start services.msc, find the account of SQL Server service. It's typically a build-in account like Local System, Network Service a local or domain account like .\SQLServer, DOMAIN\SQLServerAccount or an service account like NT Service\NT Service\MSSQL$SQL2012 on the picture below:

                  To grant permission on the private key to the account one can use Certificate Snap-In of mmc. One can start mms.exe, choose "Add/Remove Snap-in" in the "File" menu, choose "Certificates" Snap-in and to choose "Computer account" of the Local computer. Then one should select the SSL certificate of Personal store and then use context menu "Manage Private Keys...".

                  and to add account like NT Service\NT Service\MSSQL$SQL2012, found above, and to set "Read" permission to the account on the private key:

                  If you would like to establish connection to the SQL server inside of the domain (both the client and the server have to belong to the same Active Directory or to the directories connected via the trust) then one should to create SPNs for the SQL server. If I correctly understand your requirements, you want to allow remove connection to SQL Server over HTTPS. One have to active mixed security to be able to connect to the server via SQL Server Authentication:

                  After creating SQL Login, making all above changed and restarting SQL Server service one will be able to establish TLS (encrypted) connection to the SQL server. In case of attempting to connect via Windows Account without creating SPN previously one get the error:

                  A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.) (Microsoft SQL Server, Error: -2146893022)

                  The target principal name is incorrect

                  If one forget to change Windows Authentication to Mixed authentication () then one will get the error like

                  Login failed for user 'OlegKi'. (Microsoft SQL Server, Error: 18456)

                  If all above steps done one can establish TLS connection using SQL Management Studio for example, but one still have to choose some options:

                  One should check "Encrypt connection"

                  and to set additional connection property TrustServerCertificate=true

                  Typically one use Encrypt=true;TrustServerCertificate=true; as the part of connection string in the application which establish the connection to SQL server. We set Encrypt=true property by the checkbox "Encrypt connection" describe above. More detailed about the meaning of the properties and different combinations of the options can be read in "Enabling Encryption" section of the MSDN article.

                  If one do all the above steps and check "Encrypt connection" without setting TrustServerCertificate=true property then one will get the error:

                  A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.) (Microsoft SQL Server, Error: -2146893022)

                  The target principal name is incorrect

                  which I already described above in a little another situation (connection with Windows account).

                  I described all above steps because configuration of TLS connection to the server is really not so easy and one can get strange errors, which direct description gives no direct tips how to fix the problem.

                  這篇關于如何授予 SQL Server 讀取 SSL 密鑰的權限?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數據庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發
                  How to create a login to a SQL Server instance?(如何創建對 SQL Server 實例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過注冊表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會出現“數據類型轉換錯誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)
                  WinForms application design - moving documents from SQL Server to file storage(WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲)
                  <legend id='qND8E'><style id='qND8E'><dir id='qND8E'><q id='qND8E'></q></dir></style></legend>

                    <bdo id='qND8E'></bdo><ul id='qND8E'></ul>
                    <i id='qND8E'><tr id='qND8E'><dt id='qND8E'><q id='qND8E'><span id='qND8E'><b id='qND8E'><form id='qND8E'><ins id='qND8E'></ins><ul id='qND8E'></ul><sub id='qND8E'></sub></form><legend id='qND8E'></legend><bdo id='qND8E'><pre id='qND8E'><center id='qND8E'></center></pre></bdo></b><th id='qND8E'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qND8E'><tfoot id='qND8E'></tfoot><dl id='qND8E'><fieldset id='qND8E'></fieldset></dl></div>

                    <small id='qND8E'></small><noframes id='qND8E'>

                  • <tfoot id='qND8E'></tfoot>

                          <tbody id='qND8E'></tbody>

                            主站蜘蛛池模板: 久久久久久久99 | 亚洲国产成人在线 | 国产偷自视频区视频 | 一区二区三区亚洲视频 | 午夜精品一区二区三区免费视频 | 亚洲一区二区中文字幕 | 美女网站视频免费黄 | 一区二区三区亚洲 | 欧美成人自拍 | 欧美成人a∨高清免费观看 老司机午夜性大片 | 久久国产成人精品国产成人亚洲 | 亚洲国产一区二区三区在线观看 | 久久成人午夜 | 又黄又色 | 久久99久久99精品免视看婷婷 | 日本人和亚洲人zjzjhd | 97精品超碰一区二区三区 | 99色综合 | 综合色播 | 成人片在线看 | 日本一区二区视频 | 欧产日产国产精品视频 | 久久成人精品视频 | 欧美电影免费网站 | 成人黄色三级毛片 | 99久久久国产精品免费消防器 | 色偷偷人人澡人人爽人人模 | 一区欧美 | 欧美日韩福利视频 | 中文字幕一区二区三 | 精品久久不卡 | 狠狠操天天操 | 免费黄色在线观看 | 91精品久久久久久久 | 亚洲欧美一区二区三区国产精品 | 伊人久久国产 | 激情欧美日韩一区二区 | 精品国产精品国产偷麻豆 | 91中文在线观看 | 欧美男人天堂 | 一本一道久久a久久精品蜜桃 |