Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

Allow curl with ftps

  • 1.  Allow curl with ftps

    Posted Tue January 08, 2019 10:45 PM

    Originally posted by: AntonMarquez


    Hi All, 

     

    I am trying to enable ftps with my curl which is installed. Below is the curl --version output.

     

    webm@spwebmd1:/home/webm>curl --version
    curl 7.44.0 (powerpc-ibm-aix5.1.0.0) libcurl/7.44.0
    Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp
    Features: IPv6 Largefile UnixSockets
    webm@spwebmd1:/home/webm>

     

     

    I have another server where is shows enabled in the curl --version output.

     

    curl webm@spwebmp1:/home/webm>curl --version
    curl 7.44.0 (powerpc-ibm-aix5.1.0.0) libcurl/7.44.0 OpenSSL/1.0.1p zlib/1.2.4 libidn/1.29 libssh2/1.4.3
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
    Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
    webm@spwebmp1:/home/webm>

     

    Please help me get the ftps/https enabled on spwebmd1 server. Both are running with AIX 7.2 TL 2 

     

     

    Regards,

    Anton 

     

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: Allow curl with ftps

    Posted Wed January 09, 2019 01:53 AM

    Originally posted by: AyappanP


    The curl rpm which you have seems to be not from AIX Toolbox.

    Take the latest one from Toolbox --> ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/curl/

    Try to use yum to install it as it has quite a number of dependencies.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: Allow curl with ftps

    Posted Wed January 09, 2019 02:15 PM

    Originally posted by: AntonMarquez


    Thanks Ayappan,

     

    Infact I tried installing the same with yum but for some reason I couldn't setup yum properly.

     

    I will start another thread for this yum topic

     

    Appreciate your help.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 4.  Re: Allow curl with ftps

    Posted Thu January 10, 2019 03:37 PM

    Originally posted by: AntonMarquez


    I have good news and bad news.

     

    Good news is that I installed yum rpms and as a prerequisite curl also updated. And with root user it shows all the possible protocols.

     

    root@mwfsq2-KDC:/opt/freeware/lib/python2.7>curl --version
    curl 7.52.1 (powerpc-ibm-aix6.1.8.0) libcurl/7.52.1 OpenSSL/1.0.2k zlib/1.2.11
    Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
    Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy
    root@mwfsq2-KDC:/opt/freeware/lib/python2.7>

     

    Bad news is with an application user on the same server it is still not reflecting all the protocols. What am I missing?. Is it a simple tweak ?

     

    webm@mwfsq2:/home/webm>curl --version
    curl 7.52.1 (powerpc-ibm-aix6.1.8.0) libcurl/7.44.0
    Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp
    Features: IPv6 Largefile UnixSockets
    webm@mwfsq2:/home/webm>

     

     

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 5.  Re: Allow curl with ftps

    Posted Fri January 11, 2019 06:45 AM

    Originally posted by: AyappanP


    It seems like LIBPATH is affecting the application user environment.

    If you see closely curl --version is showing 7.52.1 but the libcurl is 7.44 which don't have the various protocol support.

    Check the LIBPATH settings in the application user environment.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 6.  Re: Allow curl with ftps

    Posted Fri January 11, 2019 09:57 AM

    Originally posted by: AntonMarquez


    Thanks Ayappan.

     

     I have matched the LIBPATH and it works fine. 

     

    Appreciate your help


    #AIXOpenSource
    #AIX-Open-Source-Software