{"id":732,"date":"2014-01-14T11:32:44","date_gmt":"2014-01-14T11:32:44","guid":{"rendered":"http:\/\/sccm.haas.se\/?p=732"},"modified":"2014-01-14T12:31:05","modified_gmt":"2014-01-14T12:31:05","slug":"report-builder-cant-connect-to-sql-server","status":"publish","type":"post","link":"http:\/\/sccm.haas.se\/?p=732","title":{"rendered":"Report Builder can&#8217;t connect to SQL Server"},"content":{"rendered":"<p>You try to connect to the SCCM 2012 Data Source but Report Builder throws this error:<\/p>\n<p>&#8220;A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 &#8211; The certificate chain was issued by an authority that is not trusted.)&#8221;<\/p>\n<p><a href=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/2014-01-14-11-28-131.png\"><img loading=\"lazy\" alt=\"2014-01-14 11-28-13\" src=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/2014-01-14-11-28-131-450x329.png\" width=\"450\" height=\"329\" \/><\/a><\/p>\n<p>This is because the connection needs to be authenticated by the means of a certificate that is on the SQL-server which your client doesn&#8217;t have. You need to export the &#8220;ConfigMgr SQL Server Identification Certificate&#8221; from your SQL Server Personal store to your clients Trusted Root store. Here&#8217;s a How-To:<!--more--><\/p>\n<p>On the SQL-Server, open an MMC and from the File Menu, choose Add\/Remove Snap-in and then choose Certificates.<\/p>\n<p><a href=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Certificates-MMC1.png\"><img loading=\"lazy\" alt=\"Certificates MMC\" src=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Certificates-MMC1.png\" width=\"350\" height=\"250\" \/><\/a><\/p>\n<p>Choose Computer Account after you press &#8220;Add&#8221;.<\/p>\n<p><a href=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/MMC-Computer1.png\"><img loading=\"lazy\" alt=\"MMC Computer\" src=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/MMC-Computer1-450x332.png\" width=\"450\" height=\"332\" \/><\/a><\/p>\n<p>You will then export the &#8220;ConfigMgr SQL Server Identification Certificate&#8221; from the Personal Store on the SQL-server.<\/p>\n<p><a href=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Export-Certificate1.png\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-753\" alt=\"Export Certificate\" src=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Export-Certificate1-1024x151.png\" width=\"550\" height=\"81\" srcset=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Export-Certificate1-1024x151.png 1024w, http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Export-Certificate1-450x66.png 450w, http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Export-Certificate1.png 1118w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Export21.png\"><img loading=\"lazy\" alt=\"Export2\" src=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Export21-359x212-custom.png\" width=\"359\" height=\"212\" \/><\/a><\/p>\n<p>Do not export the Private Key<\/p>\n<p><a href=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Private-key-no.png\"><img loading=\"lazy\" class=\"alignnone  wp-image-739\" alt=\"Private key no\" src=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Private-key-no-450x406.png\" width=\"405\" height=\"365\" srcset=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Private-key-no-450x406.png 450w, http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Private-key-no.png 502w\" sizes=\"(max-width: 405px) 100vw, 405px\" \/><\/a><\/p>\n<p>Put the certificate somewhere where you can import it from your computer with Report Builder.<\/p>\n<p>On the computer with Report Builder, open a new MMC-console. Add the Certificate Snap-in for that computer and then import the certificate that you exported above into the Trusted Root Store.<\/p>\n<p><a href=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Cert-import1.png\"><img loading=\"lazy\" class=\"alignnone  wp-image-747\" alt=\"Cert import\" src=\"http:\/\/sccm.haas.se\/wp-content\/uploads\/2014\/01\/Cert-import1.png\" width=\"393\" height=\"191\" \/><\/a><\/p>\n<p>After that you should be able to connect to the Data Source without problems.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You try to connect to the SCCM 2012 Data Source but Report Builder throws this error: &#8220;A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 &#8211; The certificate chain was issued by an authority that is not trusted.)&#8221; This is because the<\/p>\n<p class=\"text-right\"><span class=\"screen-reader-text\">Continue Reading&#8230; Report Builder can&#8217;t connect to SQL Server<\/span><a class=\"btn btn-secondary continue-reading\" href=\"http:\/\/sccm.haas.se\/?p=732\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[45,44,32,13],"_links":{"self":[{"href":"http:\/\/sccm.haas.se\/index.php?rest_route=\/wp\/v2\/posts\/732"}],"collection":[{"href":"http:\/\/sccm.haas.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sccm.haas.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sccm.haas.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sccm.haas.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=732"}],"version-history":[{"count":7,"href":"http:\/\/sccm.haas.se\/index.php?rest_route=\/wp\/v2\/posts\/732\/revisions"}],"predecessor-version":[{"id":759,"href":"http:\/\/sccm.haas.se\/index.php?rest_route=\/wp\/v2\/posts\/732\/revisions\/759"}],"wp:attachment":[{"href":"http:\/\/sccm.haas.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sccm.haas.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=732"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sccm.haas.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}