Error when requesting discovery dock ( HTTPS required)
I am using Identity server 4. It was working fine in fact still, everything is working. However when I try to call
var client = new HttpClient();
// discover endpoints from metadata
var disco = client.GetDiscoveryDocumentAsync(IDPBaseURL).Result;
it gives me error
http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
It's working from Visual studio and local IIS deployment. However i am facing this error only when deploying on the server.
any Idea?
c# asp.net-core identityserver4 dotnet-httpclient
add a comment |
I am using Identity server 4. It was working fine in fact still, everything is working. However when I try to call
var client = new HttpClient();
// discover endpoints from metadata
var disco = client.GetDiscoveryDocumentAsync(IDPBaseURL).Result;
it gives me error
http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
It's working from Visual studio and local IIS deployment. However i am facing this error only when deploying on the server.
any Idea?
c# asp.net-core identityserver4 dotnet-httpclient
add a comment |
I am using Identity server 4. It was working fine in fact still, everything is working. However when I try to call
var client = new HttpClient();
// discover endpoints from metadata
var disco = client.GetDiscoveryDocumentAsync(IDPBaseURL).Result;
it gives me error
http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
It's working from Visual studio and local IIS deployment. However i am facing this error only when deploying on the server.
any Idea?
c# asp.net-core identityserver4 dotnet-httpclient
I am using Identity server 4. It was working fine in fact still, everything is working. However when I try to call
var client = new HttpClient();
// discover endpoints from metadata
var disco = client.GetDiscoveryDocumentAsync(IDPBaseURL).Result;
it gives me error
http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
It's working from Visual studio and local IIS deployment. However i am facing this error only when deploying on the server.
any Idea?
c# asp.net-core identityserver4 dotnet-httpclient
c# asp.net-core identityserver4 dotnet-httpclient
edited 2 days ago
DaImTo
43.6k1158236
43.6k1158236
asked 2 days ago
Fawad Ali SiddiqiFawad Ali Siddiqi
101111
101111
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
as the error states make sure that IDPBaseURL is set to Https.
example
var client = new HttpClient();
var disco = client.GetDiscoveryDocumentAsync("https://xxx.x.x.xx").Result;
i already tried it but no luck.
– Fawad Ali Siddiqi
2 days ago
Make sure your identity server is set to run on https can you navigate to xxx.x.x.xx
– DaImTo
2 days ago
I tried it and after that im getting below error: Error connecting to 168.1.6.24:8080/.well-known/openid-configuration: The SSL connection could not be established, see inner exception. Inner Exception: The remote certificate is invalid according to the validation procedure. 168.1.6.24:8080/.well-known/openid-configuration is accessible in browser.
– Fawad Ali Siddiqi
2 days ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54252566%2ferror-when-requesting-discovery-dock-https-required%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
as the error states make sure that IDPBaseURL is set to Https.
example
var client = new HttpClient();
var disco = client.GetDiscoveryDocumentAsync("https://xxx.x.x.xx").Result;
i already tried it but no luck.
– Fawad Ali Siddiqi
2 days ago
Make sure your identity server is set to run on https can you navigate to xxx.x.x.xx
– DaImTo
2 days ago
I tried it and after that im getting below error: Error connecting to 168.1.6.24:8080/.well-known/openid-configuration: The SSL connection could not be established, see inner exception. Inner Exception: The remote certificate is invalid according to the validation procedure. 168.1.6.24:8080/.well-known/openid-configuration is accessible in browser.
– Fawad Ali Siddiqi
2 days ago
add a comment |
http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
as the error states make sure that IDPBaseURL is set to Https.
example
var client = new HttpClient();
var disco = client.GetDiscoveryDocumentAsync("https://xxx.x.x.xx").Result;
i already tried it but no luck.
– Fawad Ali Siddiqi
2 days ago
Make sure your identity server is set to run on https can you navigate to xxx.x.x.xx
– DaImTo
2 days ago
I tried it and after that im getting below error: Error connecting to 168.1.6.24:8080/.well-known/openid-configuration: The SSL connection could not be established, see inner exception. Inner Exception: The remote certificate is invalid according to the validation procedure. 168.1.6.24:8080/.well-known/openid-configuration is accessible in browser.
– Fawad Ali Siddiqi
2 days ago
add a comment |
http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
as the error states make sure that IDPBaseURL is set to Https.
example
var client = new HttpClient();
var disco = client.GetDiscoveryDocumentAsync("https://xxx.x.x.xx").Result;
http://xxx.x.x.xx:8080/.well-known/openid-configuration: HTTPS required.
as the error states make sure that IDPBaseURL is set to Https.
example
var client = new HttpClient();
var disco = client.GetDiscoveryDocumentAsync("https://xxx.x.x.xx").Result;
edited 2 days ago
answered 2 days ago
DaImToDaImTo
43.6k1158236
43.6k1158236
i already tried it but no luck.
– Fawad Ali Siddiqi
2 days ago
Make sure your identity server is set to run on https can you navigate to xxx.x.x.xx
– DaImTo
2 days ago
I tried it and after that im getting below error: Error connecting to 168.1.6.24:8080/.well-known/openid-configuration: The SSL connection could not be established, see inner exception. Inner Exception: The remote certificate is invalid according to the validation procedure. 168.1.6.24:8080/.well-known/openid-configuration is accessible in browser.
– Fawad Ali Siddiqi
2 days ago
add a comment |
i already tried it but no luck.
– Fawad Ali Siddiqi
2 days ago
Make sure your identity server is set to run on https can you navigate to xxx.x.x.xx
– DaImTo
2 days ago
I tried it and after that im getting below error: Error connecting to 168.1.6.24:8080/.well-known/openid-configuration: The SSL connection could not be established, see inner exception. Inner Exception: The remote certificate is invalid according to the validation procedure. 168.1.6.24:8080/.well-known/openid-configuration is accessible in browser.
– Fawad Ali Siddiqi
2 days ago
i already tried it but no luck.
– Fawad Ali Siddiqi
2 days ago
i already tried it but no luck.
– Fawad Ali Siddiqi
2 days ago
Make sure your identity server is set to run on https can you navigate to xxx.x.x.xx
– DaImTo
2 days ago
Make sure your identity server is set to run on https can you navigate to xxx.x.x.xx
– DaImTo
2 days ago
I tried it and after that im getting below error: Error connecting to 168.1.6.24:8080/.well-known/openid-configuration: The SSL connection could not be established, see inner exception. Inner Exception: The remote certificate is invalid according to the validation procedure. 168.1.6.24:8080/.well-known/openid-configuration is accessible in browser.
– Fawad Ali Siddiqi
2 days ago
I tried it and after that im getting below error: Error connecting to 168.1.6.24:8080/.well-known/openid-configuration: The SSL connection could not be established, see inner exception. Inner Exception: The remote certificate is invalid according to the validation procedure. 168.1.6.24:8080/.well-known/openid-configuration is accessible in browser.
– Fawad Ali Siddiqi
2 days ago
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54252566%2ferror-when-requesting-discovery-dock-https-required%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown