-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cert-manager and openssl plugins.
Signed-off-by: Martin Montes <martin11lrx@gmail.com>
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Manage cert-manager Certificate resouces via cmctl. | ||
# See: https://github.com/cert-manager/cmctl | ||
plugins: | ||
cert-status: | ||
shortCut: Shift-S | ||
confirm: false | ||
description: Certificate status | ||
scopes: | ||
- certificates | ||
command: bash | ||
background: false | ||
args: | ||
- -c | ||
- "cmctl status certificate --context $CONTEXT -n $NAMESPACE $NAME |& less" | ||
cert-renew: | ||
shortCut: Shift-R | ||
confirm: false | ||
description: Certificate renew | ||
scopes: | ||
- certificates | ||
command: bash | ||
background: false | ||
args: | ||
- -c | ||
- "cmctl renew --context $CONTEXT -n $NAMESPACE $NAME |& less" | ||
secret-inspect: | ||
shortCut: Shift-I | ||
confirm: false | ||
description: Inspect secret | ||
scopes: | ||
- secrets | ||
command: bash | ||
background: false | ||
args: | ||
- -c | ||
- "cmctl inspect secret --context $CONTEXT -n $NAMESPACE $NAME |& less" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Inspect certificate chains with openssl. | ||
# See: https://github.com/openssl/openssl. | ||
plugins: | ||
secret-openssl-ca: | ||
shortCut: Ctrl-O | ||
confirm: false | ||
description: Openssl ca.crt | ||
scopes: | ||
- secrets | ||
command: bash | ||
background: false | ||
args: | ||
- -c | ||
- kubectl get secret --context $CONTEXT -n $NAMESPACE $NAME -o jsonpath='{.data.ca\.crt}' | base64 -d | openssl storeutl -noout -text -certs /dev/stdin |& less | ||
secret-openssl-tls: | ||
shortCut: Shift-O | ||
confirm: false | ||
description: Openssl tls.crt | ||
scopes: | ||
- secrets | ||
command: bash | ||
background: false | ||
args: | ||
- -c | ||
- kubectl get secret --context $CONTEXT -n $NAMESPACE $NAME -o jsonpath='{.data.ca\.crt}' | base64 -d | openssl storeutl -noout -text -certs /dev/stdin |& less |