Added cert-manager and openssl plugins. (#2699)
Signed-off-by: Martin Montes <martin11lrx@gmail.com>mine
parent
3ef5415d62
commit
2ff050b7f8
|
|
@ -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"
|
||||||
|
|
@ -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.tls\.crt}' | base64 -d | openssl storeutl -noout -text -certs /dev/stdin |& less
|
||||||
Loading…
Reference in New Issue