From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Wincentsen Newsgroups: gmane.os.tru64.managers Subject: [SUMMARY] ssl ftp on Tru64 5.1b - Kermit? Date: Thu, 14 Jul 2005 13:51:29 -0700 Message-ID: <2BF9B77525A3D511964000508BB8B0F30CC86229@roswell.csustan.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1121374112 19630 80.91.229.2 (14 Jul 2005 20:48:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2005 20:48:32 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jul 14 22:48:31 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DtAcL-0007aj-Cc for gotm-tru64-unix-managers@gmane.org; Thu, 14 Jul 2005 22:47:37 +0200 Original-Received: (qmail 4900 invoked by uid 49509); 14 Jul 2005 20:47:20 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4885 invoked by uid 49501); 14 Jul 2005 20:47:20 -0000 Original-Received: from 160.91.4.110 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.110):SA:0(-2.6/5.0):. Processed in 0.518402 secs); 14 Jul 2005 20:47:20 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute3.ornl.gov (160.91.4.110) by sws1.ornl.gov with SMTP; 14 Jul 2005 20:47:19 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #31038) with ESMTP id <0IJM00GXIXQQ7J@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 14 Jul 2005 16:47:19 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #31038) id <0IJM00002XQFZO@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 14 Jul 2005 16:47:13 -0400 (EDT) Original-Received: from eris.csustan.edu (eris.csustan.edu [130.17.100.136]) by emroute3.ornl.gov (PMDF V6.2-X27 #31038) with ESMTP id <0IJM00LKAXQDEH@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 14 Jul 2005 16:47:03 -0400 (EDT) Original-Received: from roswell.csustan.edu (roswell.csustan.edu [130.17.194.25]) by eris.csustan.edu (8.9.3p2/Pro-8.9.3) with ESMTP id NAA452272 for ; Thu, 14 Jul 2005 13:47:14 -0700 (PDT) Original-Received: by roswell.csustan.edu with Internet Mail Service (5.5.2653.19) id ; Thu, 14 Jul 2005 13:51:30 -0700 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2653.19) X-Envelope-From: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on email.cind.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 Xref: news.gmane.org gmane.os.tru64.managers:8437 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8437 Well, I guess no one else knew either! (I didn't get any responses.) However, after working with Frank da Cruz of the Kermit Project (Columbia University), I was able to modify the kermit makefile to build a version of Kermit with SSL. The main problem was my mixing up of CFLAGS and KFLAGS. In addition to the changes for the location of the ssl related directories, the ck_ssl.c file needed to be modified to comment out the reference to inet_aton, which conflicts with the standard Tru64 definition in /usr/include/arpa/inet.h. Here is the slightly modified entry for "osf": #OSF/1 osf: $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \ "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \ -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \ "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm $(LIBS)" And here is the new entry for tru64-51b+openssl: # Added 5.1b version with OpenSSL - CDW 7-14-2005... tru64-51b+openssl: @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1b @echo including OpenSSL... $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \ "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \ -unsigned -std1 -O3 -Olimit 2400 \ -DCK_AUTHENTICATION -DCK_SSL $(SSLINC) $(KFLAGS)" \ "LIBS= $(SSLLIB) -lssl -lcrypto" Built and runs on Tru64 UNIX 5.1b (2650) on an Alpha ES45. Chris Chris Wincentsen UNIX Systems Administrator Office of Information Technology CSU Stanislaus - Turlock, CA (209) 667-3732 CWincentsen@csustan.edu > ---------- > From: Chris Wincentsen > Sent: Wednesday, July 6, 2005 1:50 PM > To: 'tru64-unix-managers@ornl.gov' > Subject: ssl ftp on Tru64 5.1b - Kermit? > > Hi, > > I need to set up an ftp process via ssl. This is completely new territory > for me, so any help will be appreciated. Also, sftp, which uses ssh, is > different and can't be used for the particular application - it requires > an > ssl setup. (I didn't realize that ssl and ssh were different until I > started researching this project.) > > I found and downloaded a current version of Kermit (8.0), which indicated > that it could be used for ssl ftp. I can compile plain Kermit, without > SSL > and that works fine. However, I can't seem to get the right combination > of > parameters to get the SSL security working. There was no entry in the > Kermit "make" file for Tru64 5.1b or 5.1b with ssl or 5.1b with any other > special security features, for that matter. Here are the changes I made > to > the original Kermit make file, if it helps you see something I've done > wrong > or left out (various experiments I tried to the make command are commented > out)... > > > diff makefile makefile.orig > > 748,749c748,749 > < SSLLIB=-L/usr/ssl/lib > < SSLINC=-I/usr/ssl/include > --- > > SSLLIB=-L$(sslroot)/ssl/lib > > SSLINC=-I$(sslroot)/ssl/include > 2190c2190 > < "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm $(LIBS)" > --- > > "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm" > 2290,2305d2289 > < > < # Added 5.1b version with OpenSSL - CDW 5-13-2005... > < tru64-51b+openssl: > < @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1b > < @echo including OpenSSL... > < $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \ > < "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \ > < -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" \ > < "CFLAGS= -DCK_AUTHENTICATION -DCK_SSL" > < > < # "CFLAGS= -DCK_AUTHENTICATION -DCK_SSL $(SSLINC)" \ > < # "LIBS= $(SSLLIB) -lssl -lcrypto" > < > < # "CFLAGS= -DCK_AUTHENTICATION -DCK_SSL -I/usr/ssl/include" > < # "CFLAGS= -DCK_AUTHENTICATION -DCK_SSL" > < # "CFLAGS= -DCK_AUTHENTICATION -DCK_SSL $(SSLINC)" > > > Has anyone else used Kermit with ssl on Tru64 5.1b? How did you do it? > Or > - is there another ssl ftp program available (preferably free) that you > have > used instead (and how did you install/configure it)? > > Thanks for any advice or suggestions you may have. > Chris > > Chris Wincentsen > UNIX Systems Administrator > Office of Information Technology > CSU Stanislaus - Turlock, CA > (209) 667-3732 CWincentsen@csustan.edu > > >