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

IBM's FTP not working with TLS encryption server


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sathyajes

New User


Joined: 02 Mar 2006
Posts: 35
Location: Chennai

PostPosted: Tue Aug 21, 2018 1:37 pm
Reply with quote

Hello all
We are trying to send mainframe file into new server(using FTP-TLS, Passive Mode, Explicit TLS Encryption). FTP is failed with “Authentication negotiation failed”. It seems, not able to recognize the password. Could you please help us with this issue.

IP address
User name
password
CD testin
PUT 'source mainframe dataset' target_file.TXT
QUIT

Log:
EZA1736I FTP
EZY2640I Using dd:SYSFTPD=XXX.FTP.DATA for local site configuratio
EZA1450I IBM FTP CS V2R1
EZA1456I Connect to ?
EZA1736I nn.nnn.nnn.nnn
EZA1554I Connecting to: nn.nnn.nnn.nnn port: 21.
220 FTP server Ready
EZA2897I Authentication negotiation failed
EZA1459I NAME (nn.nnn.nnn.nnn:my user id):
EZA1701I >>> USER FTP user id
550 SSL/TLS required on the control channel
EZA1460I Command:
EZA1736I password
EZA1618I Unknown command: 'password'
EZA1619I For a list of the available commands, say HELP
EZA1460I Command:

We also override below FTP’s parameters thorough SYSFTPD. Still issue is coming. Please let us know if any additional parameter need to be added.
SECURE_MECHANISM TLS
SECURE_FTP ALLOWED
TLSRFCLEVEL CCCNONOTIFY
TLSMECHANISM FTP
SECURE_DATACONN PRIVATE
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Tue Aug 21, 2018 1:52 pm
Reply with quote

The error you have is definitely not related to password.
You see that it says authentication negotiation failed. It means that before FTPS connection is established. The host and client must come to an agreement on how they are going to communicate (negotiation). Like the encryption algorithms or ciphers or macs or the like.

From your log You can see that the error occurred before you pass the password to server.

See if this link helps www-01.ibm.com/support/docview.wss?uid=swg21055396
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Tue Aug 21, 2018 1:54 pm
Reply with quote

I'll see if I can find one of my jcl tomorrow
Show us the FTPS jcl you are using
Back to top
View user's profile Send private message
sathyajes

New User


Joined: 02 Mar 2006
Posts: 35
Location: Chennai

PostPosted: Tue Aug 21, 2018 3:00 pm
Reply with quote

Thanks Vasanth for your help. Below jcl that we are using
Code:

 //STEP1    EXEC PGM=FTP,REGION=1024K                 
 //SYSABEND DD SYSOUT=*                               
 //SYSPRINT DD SYSOUT=*                               
 //SYSFTPD DD DSN=AAAA.AAAAA.AAAA.FTP.DATA,DISP=SHR   
 //OUTPUT DD SYSOUT=*                                 
 //INPUT DD *                                         
 NN.NNN.NNN.NNN                                       
 USRE ID                                               
 PASSWORD                                             
 CD testing                                           
 PUT 'AAAA.AAAA.AAAAAAAA.AAAAAAA.DATA' XXXX.TXT       
 QUIT


Please learn to use the code tags soon. They are very easy - see below
Code:
[code]
Your
stuff
here
[/code]
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Tue Aug 21, 2018 11:12 pm
Reply with quote

You are missing the keyring database name on your //SYSFTPD

Here is a sample FTPS SYSFTPD
Code:
//SYSFTPD  DD *                 
KEYRING FTPD/SECURE.FTP.KEYRING
SECURE_MECHANISM TLS           
SECURE_DATACONN PRIVATE         
SECUREIMPLICITZOS FALSE         
EPSV4 TRUE                     
FWFRIENDLY TRUE                 
SECURE_FTP REQUIRED             
CLIENTERRCODES EXTENDED         
LOGCLIENTERR TRUE               
CHKCONFIDENCE TRUE             
/*                             


See this link about setting up FTPS www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.gim3000/gim3116.htm


KEYRING
This statement defines the key ring that contains the Certificate Authority certificate to be used during the TLS handshake. You can use the same key ring for both HTTPS and FTPS operations. Specify the name of the keyring defined in Creating key rings on the KEYRING statement. However, IBM's secure FTP server uses a server certificate signed by a different certificate authority. Therefore, you must add the GeoTrust Global CA certificate to your keyring.
Download to your work station the GeoTrust Global CA root certificate (Root 2 - GeoTrust Global CA) from the GeoTrust website at www.geotrust.com/resources/root-certificates/index.html.
Upload the CA certificate to your z/OS system. There are many methods to transfer files from your workstation to your z/OS system. For example, you can upload the certificate file with Personal Communications 3270 or use TCP/IP FTP. The important things to remember are the certificate file must be uploaded to z/OS as Start of changetextEnd of change data, the certificate file must be stored in a sequential data set, and the sequential data set must have RECFM=VB and LRECL>=256.
After you have stored the certificate in a sequential data set, add it to your RACF® database using the following RACF command:
RACDCERT CERTAUTH ADD('ca-cert.dataset.name') +
WITHLABEL('GeoTrust Global CA') TRUST
where ca-cert.dataset.name is the name of the sequential data set used to store the certificate received from the GeoTrust web site.
Connect the GeoTrust CA certificate to the key ring using the following RACF command:
RACDCERT ID(userid) CONNECT( CERTAUTH RING(keyringname) +
LABEL('GeoTrust Global CA') USAGE(CERTAUTH) )
where keyringname is the name for the key ring you choose to use for secure FTP operations. This can be the same keyring you use for HTTPS operations and defined in Creating key rings.
Back to top
View user's profile Send private message
sathyajes

New User


Joined: 02 Mar 2006
Posts: 35
Location: Chennai

PostPosted: Wed Aug 22, 2018 1:41 pm
Reply with quote

Thanks Vasanth, I have tried all possible ways, same error throwing. I have provided keyring value that is used for ordinary FTP.

It seems issue with firewall settings.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Wed Aug 22, 2018 2:15 pm
Reply with quote

Did you follow the steps mentioned to create the keyring?
It is definitely not firewall issue as you can see from your log
220 FTP server ready.
This means that you are able to get through the firewall and able to talk to the server and back.
Not a firewall thing.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Wed Aug 22, 2018 2:18 pm
Reply with quote

Btw. Are you performing ftps to ibm or to some other internal server.
Back to top
View user's profile Send private message
sathyajes

New User


Joined: 02 Mar 2006
Posts: 35
Location: Chennai

PostPosted: Wed Aug 22, 2018 2:36 pm
Reply with quote

vasanthz wrote:
Did you follow the steps mentioned to create the keyring?
It is definitely not firewall issue as you can see from your log
220 FTP server ready.
This means that you are able to get through the firewall and able to talk to the server and back.
Not a firewall thing.



No, am from application development team, creating keyring value looks like mainframe admin team has to do. I will contact admin for this.
Back to top
View user's profile Send private message
sathyajes

New User


Joined: 02 Mar 2006
Posts: 35
Location: Chennai

PostPosted: Wed Aug 22, 2018 2:37 pm
Reply with quote

vasanthz wrote:
Btw. Are you performing ftps to ibm or to some other internal server.


we are connection IBM internal server to external server which has new feature called SSL/TLS encryption.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Wed Aug 22, 2018 2:57 pm
Reply with quote

Quote:
same error throwing

No. errors are not 'thrown' on the mainframe.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts ICETOOL with JOINKEY for Big record l... DFSORT/ICETOOL 12
No new posts Z Monitoring server fails to start IBM Tools 1
No new posts JCL JOB Cancel/Purge Not Working JCL & VSAM 6
Search our Forums:

Back to Top