certgen is a simple tool to generate self-signed certificates, and provides SAN certificates with DNS and IP entries.
Binary Releases
| OS | ARCH | Binary | 
|---|---|---|
| Linux | amd64 | linux-amd64 | 
| Linux | arm64 | linux-arm64 | 
| Linux | ppc64le | linux-ppc64le | 
| Linux | s390x | linux-s390x | 
| Apple M1 | arm64 | darwin-arm64 | 
| Apple | amd64 | darwin-amd64 | 
| Windows | amd64 | windows-amd64 | 
| Windows | arm64 | windows-amd64 | 
| FreeBSD | amd64 | freebsd-amd64 | 
| FreeBSD | arm64 | freebsd-amd64 | 
Download certgen for your specific operating system and platform.
certgen -host "127.0.0.1,localhost"
Created a new certificate 'public.crt', 'private.key' valid for the following names 📜
 - "127.0.0.1"
 - "localhost"certgen -client -host "localhost"
Created a new certificate 'client.crt', 'client.key' valid for the following names 📜
 - "localhost"