SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 64218: PROC HTTP generates the error "SSL Error: Invalid subject name in partner's certificate. Subject name must match machine name."

DetailsAboutRate It

If an HTTPS site requires a Server Name Indication (SNI), the HTTP procedure fails with the following error in the SAS® log:

ERROR: Secure communications error status 807ff019 description "SSL Error: Invalid subject name in partner's certificate. Subject name must match machine name." 

This error occurs because the remote server might be a virtual entity and needs an SNI to specify the endpoint.

Beginning with SAS® 9.4M5 (TS1M5), by default, an SNI is sent to web servers within the TLS handshake. The environment variable SSL_USE_SNI is used only to disable the SNI.

In earlier releases than SAS 9.4M5, the following code can set the SNI:

options set=SSL_USE_SNI=1 ;
options set=SSL_SNI_HOSTNAME="target-host-name";

If errors persist after you set these options, use the debugging steps in SAS Note 63587, “Obtaining additional debugging log information for the HTTP procedure,” to generate an out.log file to send to SAS Technical Support.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SAS64-bit Enabled AIX9.4 TS1M09.4 TS1M5
64-bit Enabled Solaris9.4 TS1M09.4 TS1M5
HP-UX IPF9.4 TS1M09.4 TS1M5
Linux for x649.4 TS1M09.4 TS1M5
Solaris for x649.4 TS1M09.4 TS1M5
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.