Skip to content

scottasmith/mktls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mktls

mktls simply returns a JSON array of daemon and client certificates

$ mktls example.com "*.example.com" example.test localhost 127.0.0.1 ::1
{
  "expiryYears": 10,
  "caCert": "...",
  "daemonPrivateKey": "...", 
  "daemonCertificate: "...",
  "clientPrivateKey": "...",
  "clientCertificate": "..."
}

$ mktls -expiryYears 2 example.com "*.example.com" example.test localhost 127.0.0.1 ::1
{
  "expiryYears": 2
  "caCert": "...",
  "daemonPrivateKey": "...", 
  "daemonCertificate: "...",
  "clientPrivateKey": "...",
  "clientCertificate": "..."
}

purpose

This was written to be consumed by using automation tools such as ansible.

It is HUGELY based on https://github.com/FiloSottile/mkcert and

About

GO mktls package

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages