I'm having a problem with security certificates following an upgrade to 4.0.

zmprov no longer works, it would seem to be something to do with a trust issue.

[zimbra@zs1 ~]$ zmprov 
[] ERROR: java.security.cert.CertificateExpiredException: NotAfter: Sun Jul 09 14:50:44 BST 2006
ERROR: zclient.IO_ERROR (invoke java.security.cert.CertificateException: Untrusted Server Certificate Chain, server: localhost) (cause: javax.net.ssl.SSLHandshakeException java.security.cert.CertificateException: Untrusted Server Certificate Chain)
I attempted to recreate the certificate with little luck.

[root@zs1 zimbra]# zmcreatecert 
** Importing CA

keytool error: java.lang.Exception: Certificate not imported, alias <my_ca> already exists
** Creating keystore

** Creating server cert request

Generating a 1024 bit RSA private key
writing new private key to '/opt/zimbra/ssl/ssl/server/server.key'
** Signing cert request

Using configuration from /opt/zimbra/ssl/ssl/zmssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
        Serial Number: 7 (0x7)
            Not Before: Aug 21 10:43:39 2006 GMT
            Not After : Aug 21 10:43:39 2007 GMT
            countryName               = US
            stateOrProvinceName       = N/A
            organizationName          = Zimbra Collaboration Suite
            commonName                = zs1.cromwells.co.uk
        X509v3 extensions:
            X509v3 Basic Constraints: 
            Netscape Comment: 
                OpenSSL Generated Certificate
            X509v3 Subject Key Identifier: 
            X509v3 Authority Key Identifier: 
                DirName:/C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite

            X509v3 Key Usage: 
                Digital Signature, Non Repudiation, Key Encipherment
Certificate is to be certified until Aug 21 10:43:39 2007 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Signature ok
Getting CA Private Key
[root@zs1 zimbra]# zmcertinstall 
** Importing server cert

/opt/zimbra/bin/zmcertinstall: line 81: [: =: unary operator expected
cp: missing destination file operand after `/opt/zimbra/conf/smtpd.key'
Try `cp --help' for more information.
[root@zs1 zimbra]# zmcertinstall mailbox
** Importing server cert

keytool error: java.lang.Exception: Failed to establish chain from reply
[root@zs1 zimbra]#
Any pointers?