Published: March 30, 2018
SendEmail and SendEmail With Attachments commands may result in -2104 status code
PAC Firmware for:
When using either the SendEmail or SendEmail With Attachments command, the result of the command may be a -2104 status code (SSL: Handshake failed due to invalid or unverifiable certificate).
Applicable to Gmail users
: In February 2017, Google announced that it will change the security certificates used by Gmail (without notice). Google recently changed the required security certificate used with Gmail. As a result, the certificate in PAC firmware no longer works with Gmail.
This workaround is valid only for Gmail users, and only until the next time Google changes the security certificate used with Gmail.
Follow these steps to download and install a certificate that works (as of March 30, 2018) with Gmail.
Note: This workaround is temporary because Google may change the certificate again at any time.
- Go to the Opto 22 FTP website (ftp://ftp.opto22.com).
Note: Some browsers automatically put the characters "http://" in front of some URLS. If this happens, you'll need to delete the http:// characters (or type ftp://ftp.opto22.com in your browser's URL address field) and then press Enter.
- Browse to this folder: /Public_Folders_(Unsecured)/Archives_(Software_and_Firmware)/Firmware_Archives/SNAP-PAC_Firmware_Archives/Gmail_CA_Root_Certificate/
- Download the GSR2.crt file.
Note: In March 2018, some customers reported that the GlobalSignRootCA-R2.crt file no longer worked for this workaround. We recommend you try GSR2.crt in the following steps. If you continue to have issues, try GlobalSignRootCA-R2.crt.
- Open PAC Manager, and go to the I/O Unit Maintenance window (Tools > Maintenance).
Note: As part of the process of installing the certificate on the controller, the controller will be restarted in order for it to take effect. You may need to schedule a system shutdown to coordinate putting the certificate on the controller and rebooting the controller.
- In the Command section, select "Upload File to I/O Unit".
- Use the Browse button [...] to find and select the downloaded certificate.
- In the Destination field, type /pki/root-certs/ and the name you want the certificate to have on the controller; for example:
- Select the IP address of the SNAP PAC device that you want to install the certificate on.
- Click Execute.
- Select the Save Files To Flash command, and then click Execute.
- Restart the SNAP PAC device to activate the certificates.
Because email service providers can change security certificates without notice, Opto 22 can no longer guarantee that the certificates included with PAC firmware will work with the SendEmail and SendEmailWithAttachments command.
Consequently, Opto 22 recommends you (or your IT department) identify and install the certificate(s) required by your email service provider.
For instructions to install CA Root certificates, see “Installing CA Root Certificates” in the PAC Control User’s Guide (form 1700).
Contact: Opto 22 Product Support.
Phone: 800-835-6786 or 951-695-3080
This Opto 22 Knowledge Base ('OptoKB') article is intended to provide general technical information on a particular subject or subjects and is not an exhaustive treatment of such subjects. Accordingly, the information in this OptoKB article is not intended to constitute application, design, software, or other professional engineering advice or services. Opto 22 may modify the OptoKB articles at any time. Before making any decision or taking any action which might affect your equipment, you should consult a qualified professional.
OPTO 22 DOES NOT WARRANT THE COMPLETENESS, TIMELINESS, OR ACCURACY OF THE DATA CONTAINED IN THIS OPTOKB ARTICLE AND MAY MAKE CHANGES THERETO AT ANY TIME AT ITS SOLE DISCRETION WITHOUT NOTICE. FURTHER, ALL INFORMATION CONVEYED HEREBY IS PROVIDED TO USERS 'AS IS.' IN NO EVENT SHALL OPTO 22 BE LIABLE FOR ANY DAMAGES OF ANY KIND INCLUDING DIRECT, INDIRECT INCIDENTAL, CONSEQUENTIAL, LOSS PROFIT, OR DAMAGE, EVEN IF OPTO 22 HAS BEEN ADVISED ON THE POSSIBILITY OF SUCH DAMAGES.
OPTO 22 DISCLAIMS ALL WARRANTIES WHETHER EXPRESSED OR IMPLIED WITH RESPECT TO THE INFORMATION (INCLUDING HARDWARE, SOFTWARE, AND/OR FIRMWARE) PROVIDED HEREBY, INCLUDING THE IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTIBILITY, AND NON-INFRINGEMENT. Note that certain jurisdictions do not sanction the exclusion of implied warranties: thus, this disclaimer may not apply to you.
Copyright © 2023 Opto 22. All rights reserved.