Created
March 4, 2023 17:28
-
-
Save t0rik/4a1164adabab68c24a06b53a9c217465 to your computer and use it in GitHub Desktop.
zmcertmgr doesn't work with ellipitical curve certs
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
#!/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