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
131 Views Asked by Nicolai Danielsen At
2
There are 2 best solutions below
0
Nicolai Danielsen
On
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
- In Datatables, start value resets to 0, when column sorting
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- window.location.href redirects but is causing problems on the webpage
- Using JQuery Date Slider
- Storing selected language in localStorage
- How to stop other divs from still showing when i click a different button?
- Check multiple values with jQuery
- Bootstrap component does not want to render in Datatables function
- put white spaces when entering an amount moneytype symfony
- Trouble accessing custom header in AJAX response using jQuery in Fiware Keyrock
- I just cant make it work, HTML, JS and Firebase error
- Didn't declared variable still not getting any error in JavaScript
- Move element horizontally while scrolling vertically in pure JavaScript
- allow multi carousel in same page
- Embedded TikTok posts / thumbnail styling issue
Related Questions in SSL
- Django's previous settings prevent connecting to localhost
- SSL error when redirecting from one lightsail subdomain to lightsail subdomain on different account
- HTTP Requests from SSL Secured(HTTPS) Domain Failing
- Reversed TLS re-connection issue
- Nginx configuration file and SSL certificate errors in Docker
- IBM DB2 console doesn't work after SSL certificate update
- mTLS not working with FastAPI and Uvicorn
- WSO2 change localhost - ERR_CERT_AUTHORITY_INVALID
- KeyCloak Handshake causing timeout
- Python SSL Error , Server side - Client certificate verify failing with Intermediate cert - self-signed certificate in certificate chain (_ssl.c:1007)
- Apps migrated from IIS server1 to another IIS server2 stopped communicating with an App on IIS server 1 via SSL (HTTPS)
- Let Artifactory use HTTPS settings
- Even though I added my SSL certificate, I get the "not secure" error
- CST 0001 ERRO [comm.tls] ClientHandshake -> Client TLS handshake failed after 173.725µs with error EOF remoteaddress=127.0.0.1:7051
- ERR_SSL_PROTOCOL_ERROR generated using X509 certificate with Kestrel hosting in .NET 8 on Linux
Related Questions in ASP.NET-WEB-API
- Log to Dynatrace using Serilog and web.config .NET Framework API
- How to create a REST API with .NET Framework?
- ASP.NET Core Background task with service container
- App gateway closing connection after 100 requests
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- The 'GetUriByAction' method in the LinkGenerator class in Asp.Net Core is not defined in the Repository layer of the project
- Entity Tracking Conflict when Authenticating Users in ASP.NET Core API
- Class validation on response body in .NET WebApi
- My ASP.NET server does not work and I am wondering what's missing, when I open Swagger, I get error 500
- How to split Serilog log file into multiple files?
- Response payload is not odata payload
- How can I upload picture
- Web Forms aspx - PostAsync Web API
- do you know any free reporting services like devexpress or boldreports?
- WebAPI don't deserialize JSON but same payload works in Swagger
Related Questions in SHAREPOINT-2010
- how to empty the recycle bin in SharePoint using PowerShell?
- Splitting Child forest from Main forest will impact SharePoint 2013 or 2016 On-premises environment?
- SharePoint Upload Files To Document Library Using Rest API
- Choice radio buttons not updating the sharepoint list
- Is there any option to get this issue resolved as I can only think of OR statement in Edit conditional Formula on sharepoint?
- What is RoleAssignment, RoleDefinition, RoleBinding in Sharepoint On-premise? How to remove a user from the permission list at site level?
- Workflow Error Occurred in SharePoint site
- How to visualize "list progress" in Sharepoint/Teams
- QuickSight Paginated Report Publish to Email Endpoints
- SharePoint CAML Query to Filter Data By Date
- Sharepoint workflow verification
- Way to find modern site is public or private using CSOM
- sharepoint jquery for sum of two column
- Create a flow to move all documents from recycle bin to another library
- How to dowload many files or folders from sharepoint
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.