Visual Studio WCF Connected Service certificate verification
<p>I need to use a WCF service. I'm working with ASP.NET 5 so a have to use the extension <strong>Visual Studio WCF Connected Service</strong>. When I try to add the WCF service reference to my Class Library I can't do it because the verification of certificates . I have the certificate installed in my computer but doesn't seems to work.
How can I ignore the verification of the certificate when is adding the service in my project?
Using the full .NET Framework this can be done by adding   </p>

<hr>

<pre><code>ServicePointManager.ServerCertificateValidationCallback +=
(sender, cert, chain, sslPolicyErrors) =&gt; true;
var service = new DataServiceSoapClient("DataServiceSoap");
</code></pre>

<p>but this is after adding the service reference to the project and my problem is when adding the service.</p>

<h2>The full description of the error is:</h2>

<pre><code>Scaffolding Code ...
Attempting to download metadata from  'https://login.uh.cu/webservices/dataservice.asmx' using WS-Metadata Exchange and HttpGet.

Error:Error: Cannot obtain Metadata from     https://login.uh.cu/webservices/dataservice.asmx 
If this is a Windows (R) Communication Foundation service to which you have      access, please check that you have enabled metadata publishing at the specified     address.  For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
URI: https://login.uh.cu/webservices/dataservice.asmx
Metadata contains a reference that cannot be resolved: 'https://login.uh.cu/webservices/dataservice.asmx/mex'.
Could not establish trust relationship for the SSL/TLS secure channel with authority 'login.uh.cu'. 
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.    
The remote certificate is invalid according to the validation procedure.    

Failed to generate service reference.
</code></pre>