Compare commits
2 Commits
26f542354d
...
5eaede5ca8
Author | SHA1 | Date |
---|---|---|
Paolo Asperti | 5eaede5ca8 | |
Paolo Asperti | 83d15f9436 |
|
@ -11,7 +11,7 @@ TLS_CHAIN=/acme/cert/chain.pem
|
||||||
[ ! -f "$TLS_CHAIN" ] && exit 1
|
[ ! -f "$TLS_CHAIN" ] && exit 1
|
||||||
|
|
||||||
############ CHECK CERT KEY ALGO
|
############ CHECK CERT KEY ALGO
|
||||||
ALGO=$(openssl x509 -in "$TLS_CERT"-text | sed -n 's/\ *Public Key Algorithm: //p' | tr '\n')
|
ALGO=$(openssl x509 -in "$TLS_CERT" -text | sed -n 's/\ *Public Key Algorithm: //p' | tr '\n')
|
||||||
|
|
||||||
############ UPDATE cert config if needed
|
############ UPDATE cert config if needed
|
||||||
if [ "$ALGO" = "id-ecPublicKey" ] ; then
|
if [ "$ALGO" = "id-ecPublicKey" ] ; then
|
||||||
|
|
|
@ -11,7 +11,7 @@ TLS_CHAIN=/acme/cert/chain.pem
|
||||||
[ ! -f "$TLS_CHAIN" ] && exit 1
|
[ ! -f "$TLS_CHAIN" ] && exit 1
|
||||||
|
|
||||||
############ CHECK CERT KEY ALGO
|
############ CHECK CERT KEY ALGO
|
||||||
ALGO=$(openssl x509 -in "$TLS_CERT"-text | sed -n 's/\ *Public Key Algorithm: //p' | tr '\n')
|
ALGO=$(openssl x509 -in "$TLS_CERT" -text | sed -n 's/\ *Public Key Algorithm: //p' | tr '\n')
|
||||||
|
|
||||||
############ UPDATE cert config if needed
|
############ UPDATE cert config if needed
|
||||||
if [ "$ALGO" = "id-ecPublicKey" ] ; then
|
if [ "$ALGO" = "id-ecPublicKey" ] ; then
|
||||||
|
|
Loading…
Reference in New Issue