develop a windows service and its security ?

gurneystilgar 1 Reputation point
2023-05-01T09:25:58.83+00:00

Good morning,

I took the time to write to you because I am currently working on an important project in C# and I have some questions about security. I would like, for a customer, to develop a windows service that allows to listen to the orders coming from a web site (using httplistener). The goal is to order printers in USB which some commands work only locally. The orders can only be given from one specific site. How can I be sure that the security is well respected? Is there a protocol to respect? a precise documentation on the subject? This is a solution that I found to answer a problem but maybe it is not classic enough?

I really want to do things right so I thank you in advance for your answer.

Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2023-05-02T06:13:07.24+00:00

    Hi @gurneystilgar ,

    This is a solution that I found to answer a problem but maybe it is not classic enough?

    Have you forgotten to provide the solution you found?

    You can consider using HTTPS instead of HTTP to encrypt the data that is transmitted between the client and the server. This prevents anyone from intercepting and reading the data.

    Use SSL/TLS Certificates: Use SSL/TLS certificates to ensure the authenticity of your server and the data transmitted. This prevents man-in-the-middle attacks, where an attacker intercepts and modifies the data being transmitted.

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.