Apply certificate of your Exchange Server in SDP for mail fetching / mail sending

Apply certificate of your Exchange Server in SDP for mail fetching / mail sending

Steps to apply certificate of your Exchange Server in SDP

1. Download the file from the link given below and extract it to the Service Desk Plus Home directory


2. Run the extracted batch file (Windows / Linux based on your server's operating system) from the command prompt using the syntax given below:
    Syntax : 

For Windows - gencert.bat <hostname>:<port> 

E.g. cmd> gencert.bat sdpexchange.com:995

For Linux - sh gencert.sh <hostname>:<port>

                        E.g. sh gencert.sh sdpexchange.com:995

3. The server will send the available certificates in the command prompt. You will be asked to enter the certificate number to proceed further. On supplying the certificate number, a file called jssecacerts is generated in the ServiceDesk Plus Home Directory (if the file is already present, this certificate will be appended to it).

4. Copy the jssecacerts file to jre\lib\security folder and restart ServiceDesk Plus application.

5. Save the settings and test the mail connection.

        New to ADManager Plus?

          New to ADSelfService Plus?

            • Related Articles

            • List of mail fetching issues and solutions

              Scenario 1 : Mail fetching issue due to Invalid or No PKIX certificate .   Log traces for Mail Fetching  issues Exception when connecting to store.|javax.mail.MessagingException: sun.security.validator.ValidatorException: PKIX path building failed: ...
            • Mail Fetching Stopped Due to Inline Image Handling

              Issue Cause : While fetching a mail, in certain mail servers, cid of inline image is not parsed correctly. Once inline stream is converted to image, cid in src attr will be replaced with image url. cid for uploaded inline image in mail content is not ...
            • Mail Fetching - Error while processing attachment and inline image.

              Issue During the process of fetching emails, attachments are dropped as a result of the presence of directory traversal characters. Furthermore, an issue arises when processing inline embedded images, this particular error related to inline images ...
            • Fix: Error while sending mail using EWS

              Issue trace: [11:58:49:091]|[11-29-2022]|[SYSERR]|[INFO]|[122]: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: The operation can't be performed because the item is out of date. Reload the item and try ...
            • Troubleshooting Oauth configuration for mail server settings

              Oauth in ServiceDesk Plus / AssetExplorer for Mail SDP supports Oauth configuration for Office365 and GSuite mailboxes since 11106 build. Office365 mailboxes can be configured with Oauth authentication using EWS (since 11106) and IMAP / SMTP (since ...