Gmail Gencert issue

Gmail Gencert issue

We are having issues with fetching mail from imap.gmail.com:993 when I run gencert.bat as suggested in the forums I get the following errors.

C:\ManageEngine\ServiceDesk>jre\bin\java -cp lib\cert.jar InstallCert imap.gmail
.com:993
Loading KeyStore C:\ManageEngine\ServiceDesk\jre\lib\security\cacerts...
Opening connection to imap.gmail.com:993...
Exception in thread "main" java.net.ConnectException: Connection timed out: conn
ect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknow
n Source)
        at InstallCert.main(InstallCert.java:83)

The system is sending messages fine but we are unable to reciave, all the gmail end settings are working as I can configure an other client without issue?

Anyone have any ideas?

                  New to ADSelfService Plus?