HTTPS SharePoint site with HTTPS Provider hosted app - The remote certificate is invalid according to the validation procedure
I get this error when trying to use https. It work fine with http. I search online and someone mention that because of self-signed. Can it work with self-sign? for test/development environment.
May 26th, 2015 10:58pm

Hi,

It seems like you have not got self-signed set up.

http://www.sharepointpals.com/post/How-to-Create-a-Self-Signed-Certificate-on-IIS-Server

This article may help.

Free Windows Admin Tool Kit Click here and download it now
May 26th, 2015 11:07pm

Hi Viet,

For the initial phase of debugging, you can use a self-signed certificate for high trust app.

SharePoint 2013 does not normally accept self-signed certificates. So when you are using a self-signed certificate for debugging, add the following lines to turn off SharePoint's normal requirement that HTTPS be used when remote web applications call into SharePoint. If you don't, then youll get a 403 (forbidden) message when the remote web application calls SharePoint using a self-signed certificate.

$serviceConfig = Get-SPSecurityTokenServiceConfig
$serviceConfig.AllowOAuthOverHttp = $true
$serviceConfig.Update()

You can refer to the link below about more details of how to create a basic high-trust app for SharePoint with the Office Developer Tools for Visual Studio by using a self-signed certificate and an associated issuer ID:

https://msdn.microsoft.com/en-us/library/office/fp179901.aspx

Thanks,

Vi

May 27th, 2015 11:25pm

But don't use AllowOAuthOverHttp, probably not even in dev -- it leaks sensitive information.
Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 12:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics