Golang self-signed certificate

The simplest way to create a self-signed certificate with Go:

or ecdsa 10 years duration