The issue of certificates

Tell me please, why do we need ssl certificates for a local server? You can work without them?

You can work without them. However as certificates in public you are vulnerable for MITM attack on ssl. In general nobody needs to hack you :). But who knows.