Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nothinux committed Mar 18, 2022
1 parent 8c81f6d commit 65c8e53
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,32 @@ certify [flag] [ip-or-dns-san] [cn:default certify] [expiry: s,m,h,d]
$ certify -init
⚡️ Initialize new CA Certificate and Key
You must create new CA by run -init before you can create certificate.
$ certify server.local 172.17.0.1
⚡️ Generate certificate with alt name server.local and 172.17.0.1
$ certify server.local expiry:1d
⚡️ Generate certificate expiry within 1 day
$ certify cn:web-server
⚡️ Generate certificate with common name web-server
Also, you can see information from created certificate
$ certify server.local expiry:1d
⚡️ Generate certificate expiry within 1 day
Also, you can see information from certificate
$ certify -show server.local.pem
⚡️ Show certificate information with filename server.local.pem
$ certify -connect google.com:443
⚡️ Show certificate information from remote host
Export certificate and private key file to pkcs12 format
$ certify -export-p12 cert.pem cert-key.pem ca-cert.pem
⚡️ Generate client.p12 pem file containing certificate, private key and ca certificate
Verify private key matches a certificate
$ certify -match cert-key.pem cert.pem
⚡️ verify cert-key.pem and cert.pem has same public key
```

## Use Certify as library
Expand Down

0 comments on commit 65c8e53

Please sign in to comment.