HTTPS server setup

S Abijith 426 Reputation points
2021-01-09T16:20:12.76+00:00

We have C# WPF application built on .Net Framework 4.5. We want to transfer a file to another device using the HTTPS protocol. We will have to upload the file to a server that is HTTPS enabled. I read a few articles and found that this can be achieved by using IIS. I have a few questions regarding this: Do I need to compulsorily have a web application or any other C# application in order to create an HTTPS server? Is there any other better approach to set up an HTTPS server apart from using IIS, I mean is there any automated tool that can help me achieve this easily?

Please let us know regarding this. Thank you in advance!!

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,011 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alberto Poblacion 1,561 Reputation points
    2021-01-10T09:27:58.16+00:00

    Ok, let me try to provide some answers:

    • No, you do not need to have a C# application in order to implement an HTTPS server. The server can run all by itself in IIS regardless of whether you have any application in any language. You could, for instance, simply copy some files to the IIS site and then access these files from a browser. You may, if you wish, access the server from a C# application, but you don't have to. You may also implement some code that runs inside the server in C# or another language, but the server does not require you to do it.
    • If you do not want to use IIS, you can also implement your own server inside your own application. The simplest way to do this from C# is to user OWIN with the .Net Framework. OR write your application in .Net Core and let the Core libraries provide the server for you. The former requires you to manually add the references to the project and then add some starter code. It is all explained with examples in Microsoft Learn. The latter is mostly automated (but you still have to write the code).

    Using OWIN
    Create Web API with ASP.NET Core


0 additional answers

Sort by: Most helpful

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.