Dear Christian
Thanks for your explanation. I hope that IBM would publish an IBM i Technote that explains about basic idea of TLS involved on when just a root certificate in *SYSTEM store is enough and when explicit client certificate assignment is needed and which IBM i application definitions use which one of these 2 cases.
As for the use of FTPS, my customer made their own decision despite my explanation that SFTP is more firewall friendly than FTPS because it used only one port instead of using separate port(s) for data channel which also jumps around in FTPS which needs to be restrained. They had their reason that I was not shared.
>>>>> You're probably thinking of a client certificate verifying the FTP client - the IBM i. But this is only needed if the server only will accept connections from specific, trusted clients! <<<<
The confusing thing here is that IBM i DCM uses the terminology "client/server certificate". If the root certificate is enough for server's identity verification to the client, then I could not help wonder why IBM i DCM uses "client/server" because from my Google search, no articles about this matter use this same terminology at all. Now, I have to wonder when "server" part is used since a root certificate in *SYSTEM store is enough for server ID verification.
------------------------------
Education is not the learning of facts but the training of the mind to think. -- Albert Einstein.
------------------------------
Satid S.
------------------------------
Original Message:
Sent: Fri August 11, 2023 03:29 AM
From: Christian Jorgensen
Subject: Importing a root certificate without any accompnaying client/server one
Hi Satid.
What you have running now is TLS with server verification! Your IBM i FTP client has the root certificate used to issue the FTP server certificate and will now trust the FTP server and TLS can run. Did you not have the root certificate, your FTP client would not trust the FTP server and TLS would not work.
You're probably thinking of a client certificate verifying the FTP client - the IBM i. But this is only needed if the server only will accept connections from specific, trusted clients!
I tend to avoid FTPS if possible and go for SFTP - FTP over SSH - instead, since this is much simpler to set up: Just generate a SSH key and copy the public key to the server, and you're good to go. SSH is almost always available on IBM i - just install licensed program 5733SC1 - and it will also give you a secure terminal. And the best part? No expiring certificate here! :-)
Best regards
Christian
------------------------------
Christian Jorgensen
IT System Administrator
Network of Music Partners A/S
Original Message:
Sent: Thu August 10, 2023 08:41 AM
From: Satid Singkorapoom
Subject: Importing a root certificate without any accompnaying client/server one
I work for a system integrator as an IBM i SME for a bank customer under way of its core bank replacement project. I now have a request from a core bank ISV team member to install a certificate file in IBM i 7.4 LPAR that acts as a client to an FTPs server on Intel box that he takes care of. His core bank application running in IBM i sends many stream files with FTPs to this Intel server every night after EoD batch process finishes.
When I use Windows certificate viewer against the crtificate file I receive, I see only a root certificate without any associated client certificate.

I ask that person for a client certificate and explain its difference from a root certificate but I receive a response that he always generates a certificate file like this and I have an impression he does know the difference. I then import it to IBM i *SYSTEM store anyway and validate it with a successful result. Since, there is no client certificate, I cannot assign one to IBM i FTP Client application. With curiosity, I try initiating an FTPs connection to the Intel server and it works with TLS active, to my surprise! In DCM *SYSTEM store, IBM i FTP Client has no certificate assigned and its CA Trust List is disabled.


Could any kind soul help explain to me why FTPs works with no client certificate assigned to it ? Clearly with my limited understanding in this certificate matter, I have always thought a client certificate is needed to be assigned to IBM i FTP Client in DCM for FTPS to work but my real-life experiment proves me wrong. Or is this a strange bug?
Thanks in advance for any clarification/education.
------------------------------
Education is not the learning of facts but the training of the mind to think. -- Albert Einstein.
------------------------------
Satid S.
------------------------------