{"id":201,"date":"2010-07-23T11:34:12","date_gmt":"2010-07-23T09:34:12","guid":{"rendered":"http:\/\/jsiegmund.wordpress.com\/?p=201"},"modified":"2013-04-18T18:44:05","modified_gmt":"2013-04-18T17:44:05","slug":"ssl-certificate-error-when-calling-webservice-in-sharepoint","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2010\/07\/ssl-certificate-error-when-calling-webservice-in-sharepoint\/","title":{"rendered":"SSL certificate error when calling webservice in SharePoint"},"content":{"rendered":"<p>I have a secured SSL site which I wanted to query with SPD (REST webservice). SPD gave me the well known &#8216;the server returned a non specific error&#8217; message. After some investigation, I found the following error in the ULS logs:<\/p>\n<p><em>An operation failed because the following certificate has validation errors:\\n\\nSubject Name: CN=*.company.com, OU=PositiveSSL Wildcard, OU=Domain Control Validated\\nIssuer Name: CN=PositiveSSL CA, O=Comodo CA Limited, L=Salford, S=Greater Manchester, C=GB\\nThumbprint: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\n\\nErrors:\\n\\n The root of the certificate chain is not a trusted root authority..<\/em><\/p>\n<p>Hmmm okay. At first I tried adding the certificate on the server itself, didn&#8217;t make any difference. Then I noticed an option in Central Administration called &#8216;Manage trust&#8217; which is located under Security \/ General Security. There you can add the root certificate of your SSL certificate to SharePoint. To do this; click New in the ribbon and provide a name for your new trust. For Root certificate; select the root certificate of your choice. For Token Issuer certificate, I selected my own certificate, although I&#8217;m not sure is that&#8217;s necessary. After adding this: errors will disappear!<\/p>\n<p>This probably only happens with real certificates, since a self signed one will have an automatically trusted root certificate I guess.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a secured SSL site which I wanted to query with SPD (REST webservice). SPD gave me the well known &#8216;the server returned a non specific error&#8217; message. After some investigation, I found the following error in the ULS logs: An operation failed because the following certificate has validation errors:\\n\\nSubject Name: CN=*.company.com, OU=PositiveSSL Wildcard,<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-3f","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/201"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}