I've got a sharepoint webpart that makes a jquery ajax call to a webapi, but when inspecting the call with fiddler i get a error message that says "Session #84: The remote server (srvkbhnws001) presented a certificate that did not validate, due to RemoteCertificateNameMismatch." Now the client calling is on the domain mydomain.local, the webserver that hosts the webapi is on the same domain. Now the traffic has to be over https so there is a certificate installed on the machines but it is issued to *.mydomain.dk. Is the that the root of the problem, and if so...how do I fix it.
Error calling webapi from sharepoint
75 Views Asked by Nicolai Danielsen At
2
There are 2 best solutions below
0

It turns out, that the mismatch was caused by the way that I called my webservice. I called my webservice with https://[servername]/[servicename]/[api]/[operation]. But I the server name has to have the domain attached in order to satisfy the certicate so when I changed the DNS mapping so that I could call my service with *.domain.dk/[servicename]/[api]/[operation] the problem was solved.
Related Questions in JQUERY
- Query with my own data using langchain and pinecone
- Dumping embeddings in FAISS DB in langchain causing RAM to explode
- How can I use Langchain to identify the top k sentences that are the closest match to a user query and then return the docs containing these sentences
- How can I restrict OpenAI to return only data from a Pinecone Vector DB?
- Langchain : How do input variables work, in particular how is "context" replaced by what I want in the Template?
- How to integrate Langchain's Human Tool into Streamlit
- Implementing Vercel KV with LangChain (Vercel AI SDK)
- Could not find a version that satisfies the requirement python-magic-bin
- Mocks passed to LangChain are not preserved
- Methodology for Tracking Client Details in a Natural Language Bot using Langchain and RAG
Related Questions in SSL
- Query with my own data using langchain and pinecone
- Dumping embeddings in FAISS DB in langchain causing RAM to explode
- How can I use Langchain to identify the top k sentences that are the closest match to a user query and then return the docs containing these sentences
- How can I restrict OpenAI to return only data from a Pinecone Vector DB?
- Langchain : How do input variables work, in particular how is "context" replaced by what I want in the Template?
- How to integrate Langchain's Human Tool into Streamlit
- Implementing Vercel KV with LangChain (Vercel AI SDK)
- Could not find a version that satisfies the requirement python-magic-bin
- Mocks passed to LangChain are not preserved
- Methodology for Tracking Client Details in a Natural Language Bot using Langchain and RAG
Related Questions in ASP.NET-WEB-API
- Query with my own data using langchain and pinecone
- Dumping embeddings in FAISS DB in langchain causing RAM to explode
- How can I use Langchain to identify the top k sentences that are the closest match to a user query and then return the docs containing these sentences
- How can I restrict OpenAI to return only data from a Pinecone Vector DB?
- Langchain : How do input variables work, in particular how is "context" replaced by what I want in the Template?
- How to integrate Langchain's Human Tool into Streamlit
- Implementing Vercel KV with LangChain (Vercel AI SDK)
- Could not find a version that satisfies the requirement python-magic-bin
- Mocks passed to LangChain are not preserved
- Methodology for Tracking Client Details in a Natural Language Bot using Langchain and RAG
Related Questions in SHAREPOINT-2010
- Query with my own data using langchain and pinecone
- Dumping embeddings in FAISS DB in langchain causing RAM to explode
- How can I use Langchain to identify the top k sentences that are the closest match to a user query and then return the docs containing these sentences
- How can I restrict OpenAI to return only data from a Pinecone Vector DB?
- Langchain : How do input variables work, in particular how is "context" replaced by what I want in the Template?
- How to integrate Langchain's Human Tool into Streamlit
- Implementing Vercel KV with LangChain (Vercel AI SDK)
- Could not find a version that satisfies the requirement python-magic-bin
- Mocks passed to LangChain are not preserved
- Methodology for Tracking Client Details in a Natural Language Bot using Langchain and RAG
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
OK first thing you need to do is to Export your root cert in to a file.cert.
Wnd+r and type mmc go to certs find your root cert and export it, for the sake of time and space you will be good if you get to this screen:
Now you have to go to Sharepoint central admin:
Click to new to add a new trust:
and this screen will appear:
Upload there your root cert Click and you will be good to go.