Skip to content

Instantly share code, notes, and snippets.

@t0rik
Created March 4, 2023 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t0rik/4a1164adabab68c24a06b53a9c217465 to your computer and use it in GitHub Desktop.
Save t0rik/4a1164adabab68c24a06b53a9c217465 to your computer and use it in GitHub Desktop.
zmcertmgr doesn't work with ellipitical curve certs
#!/bin/sh
#
# BUG: zmcertmgr doesn't work with ellipitical curve certs
# Ref: https://forums.zimbra.org/viewtopic.php?f=15&t=69645
#
zmcertmgr=/opt/zimbra/bin/zmcertmgr
cp $zmcertmgr $zmcertmgr.bak
sed -i -e 's/$self->run("$ssl rsa -noout -modulus -in '$keyf'/$self->run("$ssl pkey -pubout -in '$keyf'/g' \
-e 's/$self->run("$ssl x509 -noout -modulus -in '$crtf'/$self->run("$ssl x509 -noout -pubkey -in '$crtf'/g' $zmcertmgr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment