Salesforce

How to use -nohostverify with the ABL HTTPClient?

« Go Back

Information

 
TitleHow to use -nohostverify with the ABL HTTPClient?
URL NameHow-to-use-nohostverify-with-the-ABL-HTTPClient
Article Number000185285
EnvironmentProduct: OpenEdge
Version: 11.5.1, 11.6, 11.7, 12.x
OS: All Supported Platforms
Other: ABL Http Client
Question/Problem Description

Getting error 9318 error code -55 using the ABL HTTPClient (OpenEdge.Net.HTTP).  

Is it possible to somehow tell the HTTP Client to use -nohostverify when connecting to the service?
 

Steps to Reproduce
Clarifying Information
  • The certificate path includes a wildcard therefore the -nohostverify parameter needs to be used in the CONNECT() method when using httpclient to connect to the Web Service, however the utility does not expose the CONNECT() method.
Error MessageSecure Socket Layer (SSL) failure. error code <err_number>: <ssl_error_message> (9318)
Defect Number
Enhancement Number
Cause
Resolution

The ClientBuilder class contains a method called sslVerifyHost() that can be called to indicate whether or not to use this parameter.  To use this, add the following code before executing the request:

 

NOTE: In the below code snippet, it is assumed that oHttpClient has already been instantiated.  This code will not execute as is.  It is simply demonstrating how/where to add nohostverify. 

USING OpenEdge.Net.HTTP.IHttpClientLibrary.
USING OpenEdge.Net.HTTP.Lib.ClientLibraryBuilder. 
 
DEFINE VARIABLE oLib AS IHttpClientLibrary NO-UNDO. 

oLib = ClientLibraryBuilder:Build()
       :sslVerifyHost(NO)
       :Library.
oHttpClient = ClientBuilder:Build()
              :UsingLibrary(oLib)
              :Client.


The above code sample shows that passing a FALSE value tells the HTTP Client NOT to verify the host when connecting.

Note: While the shell of this method was implemented before 11.6.1, the sslVerifyHost() method has no effect until OpenEdge Release 11.6.1.

Workaround
Notes

References to Other Documentation:

The sslVerifyHost method is documented in the OE HTTP Client documentation, under the ClientLibraryBuilder class at the following location:
https://documentation.progress.com/output/oehttpclient/oe117/index.html?OpenEdge.Net.HTTP.Lib.ClientLibraryBuilder.html

Progress Article(s):

What is the -nohostverify parameter?
Is there an HTTP client for OpenEdge?
OpenEdge.Net.pl is missing from PROPATH

 

Keyword Phrase
Last Modified Date3/27/2025 5:33 PM

Powered by