pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <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="7x7fd7v" id='Wsxql'><tfoot id='Wsxql'></tfoot><dl id='Wsxql'><fieldset id='Wsxql'></fieldset></dl></div>

        如何授予 SQL Server 讀取 SSL 密鑰的權(quán)限?

        How can I give SQL Server permission to read my SSL Key?(如何授予 SQL Server 讀取 SSL 密鑰的權(quán)限?)
          <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="pbn7hj7" id='j6Ci5'><tfoot id='j6Ci5'></tfoot><dl id='j6Ci5'><fieldset id='j6Ci5'></fieldset></dl></div>

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

                  問題描述

                  限時送ChatGPT賬號..

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

                  問題是現(xiàn)在SQL Server服務(wù)無法啟動:

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

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

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

                  解決方案

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

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

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

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

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

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

                  <塊引用>

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

                  目標主體名稱不正確

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

                  <塊引用>

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

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

                  應(yīng)該勾選加密連接"

                  并設(shè)置附加連接屬性 TrustServerCertificate=true

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

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

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

                  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.

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

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

                  相關(guān)文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數(shù)據(jù)庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發(fā)
                  How to create a login to a SQL Server instance?(如何創(chuàng)建對 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()?(為什么會出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯誤?使用 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 應(yīng)用程序設(shè)計——將文檔從 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="bl79lff" 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>

                            主站蜘蛛池模板: 北京康百特科技有限公司-分子蒸馏-短程分子蒸馏设备-实验室分子蒸馏设备 | 低噪声电流前置放大器-SR570电流前置放大器-深圳市嘉士达精密仪器有限公司 | 青岛代理记账_青岛李沧代理记账公司_青岛崂山代理记账一个月多少钱_青岛德辉财税事务所官网 | 方源木业官网-四川木门-全国木门专业品牌| 基本型顶空进样器-全自动热脱附解吸仪价格-AutoHS全模式-成都科林分析技术有限公司 | 耐驰泵阀管件制造-耐驰泵阀科技(天津)有限公司 | 河南档案架,档案密集架,手动密集架,河南密集架批发/报价 | 【365公司转让网】公司求购|转让|资质买卖_股权转让交易平台 | 膏方加工_丸剂贴牌_膏滋代加工_湖北康瑞生物科技有限公司 | 减速机电机一体机_带电机减速器一套_德国BOSERL电动机与减速箱生产厂家 | 绿叶|绿叶投资|健康产业_绿叶投资集团有限公司| 单螺旋速冻机-双螺旋-流态化-隧道式-食品速冻机厂家-广州冰泉制冷 | 精密五金冲压件_深圳五金冲压厂_钣金加工厂_五金模具加工-诚瑞丰科技股份有限公司 | 云杂志网-学术期刊-首页 | 东莞动力锂电池保护板_BMS智能软件保护板_锂电池主动均衡保护板-东莞市倡芯电子科技有限公司 | 净化工程_无尘车间_无尘车间装修-广州科凌净化工程有限公司 | 压砖机、液压制砖机、静压砖机、环保砖机生产厂家—杜甫机械 | 智成电子深圳tdk一级代理-提供TDK电容电感贴片蜂鸣器磁芯lambda电源代理经销,TDK代理商有哪些TDK一级代理商排名查询。-深圳tdk一级代理 | 中高频感应加热设备|高频淬火设备|超音频感应加热电源|不锈钢管光亮退火机|真空管烤消设备 - 郑州蓝硕工业炉设备有限公司 | 临时厕所租赁_玻璃钢厕所租赁_蹲式|坐式厕所出租-北京慧海通 | 冷水机-冰水机-冷冻机-冷风机-本森智能装备(深圳)有限公司 | 河南生物显微镜,全自动冰冻切片机-河南荣程联合科技有限公司 | 模型公司_模型制作_沙盘模型报价-中国模型网 | 讲师宝经纪-专业培训机构师资供应商_培训机构找讲师、培训师、讲师经纪就上讲师宝经纪 | 聚氨酯复合板保温板厂家_廊坊华宇创新科技有限公司 | 东风体检车厂家_公共卫生体检车_医院体检车_移动体检车-锦沅科贸 | 喷码机,激光喷码打码机,鸡蛋打码机,手持打码机,自动喷码机,一物一码防伪溯源-恒欣瑞达有限公司 | 沧州友城管业有限公司-内外涂塑钢管-大口径螺旋钢管-涂塑螺旋管-保温钢管生产厂家 | 石家庄网站建设|石家庄网站制作|石家庄小程序开发|石家庄微信开发|网站建设公司|网站制作公司|微信小程序开发|手机APP开发|软件开发 | 深圳货架厂_仓库货架公司_重型仓储货架_线棒货架批发-深圳市诺普泰仓储设备有限公司 | 服务器之家 - 专注于服务器技术及软件下载分享 | 桑茶-七彩贝壳桑叶茶 长寿茶 | 超声骨密度仪,双能X射线骨密度仪【起草单位】,骨密度检测仪厂家 - 品源医疗(江苏)有限公司 | 2025黄道吉日查询、吉时查询、老黄历查询平台- 黄道吉日查询网 | 云杂志网-学术期刊-首页 | 中药二氧化硫测定仪,食品二氧化硫测定仪|俊腾百科 | 等离子表面处理机-等离子表面活化机-真空等离子清洗机-深圳市东信高科自动化设备有限公司 | KBX-220倾斜开关|KBW-220P/L跑偏开关|拉绳开关|DHJY-I隔爆打滑开关|溜槽堵塞开关|欠速开关|声光报警器-山东卓信有限公司 | 电梯装饰-北京万达中意电梯装饰有限公司| 水稻烘干机,小麦烘干机,大豆烘干机,玉米烘干机,粮食烘干机_巩义市锦华粮食烘干机械制造有限公司 水环真空泵厂家,2bv真空泵,2be真空泵-淄博真空设备厂 | CE认证_FCC认证_CCC认证_MFI认证_UN38.3认证-微测检测 CNAS实验室 |