Click here to Skip to main content
15,920,801 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Self Signed Cert Questions Pin
Richard Deeming1-Aug-22 0:17
mveRichard Deeming1-Aug-22 0:17 
GeneralRe: Self Signed Cert Questions Pin
Kevin Marois1-Aug-22 10:40
professionalKevin Marois1-Aug-22 10:40 
GeneralRe: Self Signed Cert Questions Pin
Richard Deeming1-Aug-22 21:34
mveRichard Deeming1-Aug-22 21:34 
GeneralRe: Self Signed Cert Questions Pin
Kevin Marois9-Aug-22 7:14
professionalKevin Marois9-Aug-22 7:14 
GeneralRe: Self Signed Cert Questions Pin
Richard Deeming9-Aug-22 7:29
mveRichard Deeming9-Aug-22 7:29 
GeneralRe: Self Signed Cert Questions Pin
Kevin Marois9-Aug-22 12:12
professionalKevin Marois9-Aug-22 12:12 
GeneralRe: Self Signed Cert Questions Pin
Richard Deeming10-Aug-22 1:24
mveRichard Deeming10-Aug-22 1:24 
GeneralRe: Self Signed Cert Questions [UPDATED] Pin
Kevin Marois10-Aug-22 8:47
professionalKevin Marois10-Aug-22 8:47 
Well, it seems that I can now access the API on my server from my Dev PC using Postman:
https://marois_dev_1:8091/api/Person/GetPerson?personId=1
This part appears to be resolved.

Now, I tried to allow access to the API from OUTSIDE my home network I've opened the port on the firewall and router, but it throws
"An error occurred while sending the request. " 
with 2 inner exceptions
Inner Exception 1:
WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

Inner Exception 2:
AuthenticationException: The remote certificate is invalid according to the validation procedure.

I'm guessing the self-signed cert won't work for this?

[UPDATE]
This works, but I'd like to hear your thoughts on all of this
[https://stackoverflow.com/questions/703272/could-not-establish-trust-relationship-for-ssl-tls-secure-channel-soap](https://stackoverflow.com/questions/703272/could-not-establish-trust-relationship-for-ssl-tls-secure-channel-soap)
//Trust all certificates
System.Net.ServicePointManager.ServerCertificateValidationCallback =
    ((sender, certificate, chain, sslPolicyErrors) => true);
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.


modified 10-Aug-22 18:36pm.

GeneralRe: Self Signed Cert Questions [UPDATED] Pin
Richard Deeming10-Aug-22 21:52
mveRichard Deeming10-Aug-22 21:52 
GeneralRe: Self Signed Cert Questions [UPDATED] Pin
Kevin Marois11-Aug-22 5:39
professionalKevin Marois11-Aug-22 5:39 
QuestionDisplay snowflake data into visualization format Pin
jebasgp20-Jul-22 1:51
jebasgp20-Jul-22 1:51 
AnswerRe: Display snowflake data into visualization format Pin
CHill6020-Jul-22 2:31
mveCHill6020-Jul-22 2:31 
Question.Net Framework Web API & Client - Empty JSON Pin
Kevin Marois11-Jul-22 16:56
professionalKevin Marois11-Jul-22 16:56 
AnswerRe: .Net Framework Web API & Client - Empty JSON Pin
Mycroft Holmes12-Jul-22 12:08
professionalMycroft Holmes12-Jul-22 12:08 
GeneralRe: .Net Framework Web API & Client - Empty JSON Pin
Kevin Marois 202212-Jul-22 12:36
Kevin Marois 202212-Jul-22 12:36 
AnswerRe: .Net Framework Web API & Client - Empty JSON Pin
Richard Deeming12-Jul-22 21:44
mveRichard Deeming12-Jul-22 21:44 
GeneralMessage Closed Pin
13-Jul-22 6:24
professionalKevin Marois13-Jul-22 6:24 
GeneralRe: .Net Framework Web API & Client - Empty JSON Pin
Richard Deeming13-Jul-22 6:55
mveRichard Deeming13-Jul-22 6:55 
GeneralRe: .Net Framework Web API & Client - Empty JSON Pin
Kevin Marois13-Jul-22 8:14
professionalKevin Marois13-Jul-22 8:14 
QuestionVisual Studio 2022 vs Visual Studio Code for Angular development Pin
Danpeking9-Jun-22 23:20
Danpeking9-Jun-22 23:20 
AnswerRe: Visual Studio 2022 vs Visual Studio Code for Angular development Pin
thatraja2-Aug-22 1:48
professionalthatraja2-Aug-22 1:48 
AnswerRe: Visual Studio 2022 vs Visual Studio Code for Angular development Pin
Jeremy Falcon15-Dec-22 13:14
professionalJeremy Falcon15-Dec-22 13:14 
AnswerRe: Visual Studio 2022 vs Visual Studio Code for Angular development Pin
Nitin S11-Apr-23 18:14
professionalNitin S11-Apr-23 18:14 
QuestionSearch Function Pin
Yhanzoe Adigue6-Jun-22 16:28
Yhanzoe Adigue6-Jun-22 16:28 
AnswerRe: Search Function Pin
Pete O'Hanlon6-Jun-22 20:41
mvePete O'Hanlon6-Jun-22 20:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.