locked
Asp.net webapi.selfhost certificate generation RRS feed

  • Question

  • User1424347079 posted

    I have an webapi.selfhost configuration that I need to install on multiple machines to run as a mini server on multiple machines. Each machine running selfhost needs to have a certificate. Do I need to create new certificate on each machine? If so, does anyone know of a way to create a certificate for each selfhost automatically so that the user doesn't have to manually generate a certificate on each machine?

    Thanks for any help.

    Friday, July 14, 2017 3:37 PM

All replies

  • User1068175894 posted

    do you mean a certificates for ssl?

    If that is the case take a look to lets encrypt https://letsencrypt.org/

    Friday, July 14, 2017 5:52 PM
  • User1424347079 posted

    Yes I mean a certificate for a local OWIN Self Host Install on a machine without IIS.  I want to setup a certificate for the host name that I setup through my OWIN code.

    Friday, July 14, 2017 7:23 PM
  • User1168443798 posted

    Hi jttj109,

    >>Do I need to create new certificate on each machine?

    Yes, for a production environment, it is recommend to apply for certificate from CA site.

    >>f so, does anyone know of a way to create a certificate for each selfhost automatically so that the user doesn't have to manually generate a certificate on each machine?

    In my option, you could create certificate in one machine, and install them in other machine. 

    For a tool, I suggest you try MakeCert.

    Best Regards,

    Edward

    Monday, July 17, 2017 8:33 AM
  • User1068175894 posted

    Read this article on how to automatically create real valid certificates with letsencrypt

    https://soledadpenades.com/2016/04/07/securing-your-self-hosted-website-with-lets-encrypt-part-3-using-lets-encrypt/

    Monday, July 17, 2017 12:05 PM