I'll start with the fact that I'm frontend. To test the functionality, I need to be able to implement my code on https sites.

Can I somehow configure nginx on the local machine so that it gives statics via https. To be able to connect scripts in the browser console via https? I do not even need https to be valid, just that the protocol says "https: //". I do not have a certificate, maybe there is some kind of hack for this, would be grateful for the example of Kongfig

    1 answer 1

    The https protocol is the “http protocol over ssl or tls protocols ”.

    and before you can get at least some bytes via the http protocol, the client and the server must first establish a connection using the ssl or tls protocols, which require a so-called "certificate" (which is a pair of open and closed keys).

    this is what the customers expect (compliant with standards).

    trying to trick them by not establishing an ssl / tls connection does not make much practical sense (well, only if you are not, for example, a vulnerability researcher).


    for testing, you can generate a self-signed certificate. if it is not possible to spend a little more time on obtaining a “good” certificate from, for example, .