command line tool to make self signed x.509 CA and cert for a domain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forest 7ea8d2b519 Update 'ReadMe.md' 2 years ago
.gitignore blah 4 years ago
LICENSE.md add support for creating a client cert too 3 years ago
ReadMe.md Update 'ReadMe.md' 2 years ago
certificates.png add aaaa to make it show up at the top of the lists in FF 4 years ago
go.mod add support for creating a client cert too 3 years ago
go.sum add support for creating a client cert too 3 years ago
main.go add support for creating a client cert too 3 years ago

ReadMe.md

make-fake-cert

Usecase 1: Generating certificates for use with threshold 🏔🛤🏔

  • 1st argument: domain name for server
  • 2nd argument: client ID

./make-fake-cert myserver.com myclient

Note this will only work for a single client/server pair, if you want multiple clients or servers you might have to edit the code.

Usecase 2: MITM attacking yourself or using a self signed cert in Firefox

go run main.go example.com

then in firefox go to about:preferences

search for "certificate"

then click View Certificates... and click Import, then select the file named like example.com_CA.crt

MAKE SURE TO DELETE THIS CA FROM YOUR CERTIFICATES LIST WHEN YOU ARE DONE USING IT