Base solution for your next web application
Open Closed

ASPNET ZERO + SSL #2328


User avatar
0
alexzapros created

Hi,

If there any tests to use aspnetzero with ssl?


8 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We don't have but you can use SSL just like you use with any other website.

  • User Avatar
    0
    alexzapros created

    <cite>ismcagdas: </cite> Hi,

    We don't have but you can use SSL just like you use with any other website.

    We have SSL and want to integrate it - just wondering - asp.net zero was tested with SSL and all should be fine.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Our website is based on AspNet Zero <a class="postlink" href="https://aspnetzero.com/">https://aspnetzero.com/</a> and it is working with SSL. Also some of our customers uses SSL, no problem.

  • User Avatar
    0
    talehoang created

    Hi,

    Can you show me steps by steps how to config/add code to makes ASPNET ZERO runs in https

    Thanks

  • User Avatar
    0
    alper created
    Support Team

    Hi,

    Host ASP.NET Core on Windows with IIS <a class="postlink" href="https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1&tabs=aspnetcore2x">https://docs.microsoft.com/en-us/aspnet ... pnetcore2x</a>

    Enforce HTTPS in ASP.NET Core <a class="postlink" href="https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-2.1&tabs=visual-studio">https://docs.microsoft.com/en-us/aspnet ... ual-studio</a>

    Configuring HTTPS in ASP.NET Core across different platforms <a class="postlink" href="https://blogs.msdn.microsoft.com/webdev/2017/11/29/configuring-https-in-asp-net-core-across-different-platforms/">https://blogs.msdn.microsoft.com/webdev ... platforms/</a>

  • User Avatar
    0
    talehoang created

    Thank you so much

  • User Avatar
    0
    ashgadala created

    I followed below to enforse https. But i am getting below errors. There is no help in the references. Can you please help with the references that are needed here . VS is refactoring does not help.

    Severity Code Description Project File Line Suppression State Error CS1061 'IServiceCollection' does not contain a definition for 'AddHttpsRedirection' and no extension method 'AddHttpsRedirection' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?)

    Severity Code Description Project File Line Suppression State Error CS1061 'IApplicationBuilder' does not contain a definition for 'UseHttpsRedirection' and no extension method 'UseHttpsRedirection' accepting a first argument of type 'IApplicationBuilder' could be found (are you missing a using directive or an assembly reference?)

    <cite>alper: </cite> Hi,

    Enforce HTTPS in ASP.NET Core <a class="postlink" href="https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-2.1&tabs=visual-studio">https://docs.microsoft.com/en-us/aspnet ... ual-studio</a>

    Configuring HTTPS in ASP.NET Core across different platforms <a class="postlink" href="https://blogs.msdn.microsoft.com/webdev/2017/11/29/configuring-https-in-asp-net-core-across-different-platforms/">https://blogs.msdn.microsoft.com/webdev ... platforms/</a>

  • User Avatar
    0
    ismcagdas created
    Support Team

    @ashgadala you need to add reference to nuget package which contains mentioned extension methods. You can create an empty ASP.NET Core 2.1 project and see the namespaces used for those extension methods.