8
I wonder if you have how to restrict requests to a web api specifically for a machine.
My web api will be hosted on computer A.
My client (at first only one) will stay on the computer B.
Different servers, different machines.
There are ways I can filter the web api only to "respond" to the computer client B?
- Is it SSL? How does it work? Just install the certificate on the server and client? I need to handle the server-side request?
- It is very likely in the future to have a mobile application to query the same web api.. How to act in case you "release" the application requests?
@Downvoter: Please comment on what can be improved on the question, or indicate what is wrong with it so I can correct it.
– Marllon Nasser
See if this question help. Have a post do blog do Carlos Figueira no MSDN which explains how to filter calls using a certificate. I believe that to filter, the correct thing is to have a certificate, and filter the calls to allow only the calls that have this certificate.
– Grupo CDS Informática
SSL serves to encrypt the conversation between a client and a server in order to prevent data interception by third parties, as well as to assure the client that the server owns the private half of the key pair. Its purpose is to ensure the reliability and privacy of the information trafficked, not the restriction of access. This can be achieved through firewalls, HTTP server settings, or ideally with authentication methods as described in the answers below. One can use digital certificate authentication ("electronic signature"), but this is not the same as SSL.
– nunks