IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COBOL ZOS Web Enablement Toolkit HTTPS calls errors - SSL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pulibhaskar123

New User


Joined: 26 Jan 2024
Posts: 4
Location: United States

PostPosted: Wed Feb 07, 2024 9:49 am
Reply with quote

Hi,

we are trying to connect to https endpoints and receiving the error Unable to initialize SSL socket and No SSL cipher specifications reason code 402. I am able to connect to http endpoints and able to get the response. But getting the errors with https calls. Below is the verbose log about the errors.

HWTH SETUP options using in the COBOL w/ IBM Z/OS Web Enablement Toolkit logic are

HWTH-OPT-URI
HWTH-OPT-PORT
HWTH-OPT-COOKIETYPE
HWTH-COOKIETYPE-SESSION
HWTH-SSL-USE
HWTH-OPT-USE-SSL
HWTH-OPT-SSLVERSION
HWTH-SSLVERSION-TLSV12
HWTH-SSLKEYTYPE-KEYRINGNAME
HWTH-OPT-SSLKEYTYPE
HWTH-OPT-SSLKEY
HWTH-OPT-SSLCIPHERSPECS


0000000001 t: HWTH_OPT_VERBOSE has been set to HWTH_VERBOSE_ON
0000000001 t-Entry: iconnImpl
0000000001 t-Entry: initTranslationTables
0000000001 t-Exit: initTranslationTables
0000000001 t: Connecting to Use [URL] BBCode for External Links via port 443
0000000001 t: Attempting to connect to IP address: 142.250.65.228
0000000001 t-Entry: setSocketOptions
0000000001 t-Exit: setSocketOptions
0000000001 t: Connection established using socket: 0
0000000001 t-Entry: checkForTTLS
0000000001 t: ATTLS detection OK: s=0 pol=NO_POLICY
0000000001 t: Socket maps to TTLSRule: (none)
0000000001 t: ATTLS is *not* in effect
0000000001 t-Exit: checkForTTLS
0000000001 t-Entry: initSSLEnv
0000000001 t: Creating a new SSL environment
0000000001 t: Setting user specified SSL protocols
0000000001 t: Disabling the SSLV3 protocol
0000000001 t: Disabling the TLSV1 protocol
0000000001 t: Disabling the TLSV1.1 protocol
0000000001 t: Enabling the TLSV1.2 protocol
0000000001 t: Disabling the TLSV1.3 protocol
0000000001 t: Setting user-defined cipher specs to: 009F
0000000001 t: Setting SSL key database to: xxxxx/xxxxx
0000000001 t-Entry: ignoreSignal
0000000001 t: now ignoring signal: SIGPIPE
0000000001 t-Exit: ignoreSignal
0000000001 t: Invoke gsk_secure_socket_open()
0000000001 t-Entry: restoreSignal
0000000001 t: restoring signal: SIGPIPE
0000000001 t-Exit: restoreSignal
0000000001 t: No applicable peerid.
0000000001 t: hostIsName() is TRUE 'www.google.com'
0000000001 t: Applied SNI extension for 'www.google.com'
0000000001 t-Entry: ignoreSignal
0000000001 t: now ignoring signal: SIGPIPE
0000000001 t-Exit: ignoreSignal
0000000001 t: Invoke gsk_secure_socket_init()
0000000001 t-Entry: restoreSignal
0000000001 t: restoring signal: SIGPIPE
0000000001 t-Exit: restoreSignal
0000000001 t: Unable to initialize SSL socket.
0000000001 t-Entry: error
0000000001 t: An error occurred: No SSL cipher specifications
0000000001 t: Reason code: 402
0000000001 t: Return code: -1
0000000001 t: Service: 22
0000000001 t: Service Instance: 1
0000000001 t-Exit: error
0000000001 t-Entry: setReturnCode
0000000001 t-Exit: setReturnCode
0000000001 t-Entry: ignoreSignal
0000000001 t: now ignoring signal: SIGPIPE
0000000001 t-Exit: ignoreSignal
0000000001 t: Invoke gsk_secure_socket_close()
0000000001 t-Entry: restoreSignal
0000000001 t: restoring signal: SIGPIPE
0000000001 t-Exit: restoreSignal
0000000001 t: Disconnecting new socket due to SSL initialization failure
0000000001 t-Entry: idiscImpl
0000000001 t: Closing socket: 0
0000000001 t-Exit: idiscImpl


Please help me how to resolve the errors. Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top