Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-05-2005, 01:39 PM   #1
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default running io as a service.. NEED SSL!

Hi..
i'm using firedaemon, to run ioFTPD as a service.

But i cant get SSL to work..

Anyone have any ideas ? :P
zOrP is offline   Reply With Quote
Old 10-05-2005, 02:04 PM   #2
peep
Senior Member
FlashFXP Scripter
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 132
Default

You need to install the ssl cert through firedaemon aswell to make it work. Create a .bat file for installing the cert and run the bat through FD
peep is offline   Reply With Quote
Old 10-05-2005, 02:24 PM   #3
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

hmmm.. how do i do that... ?
some kind of script ?
zOrP is offline   Reply With Quote
Old 10-05-2005, 02:34 PM   #4
peep
Senior Member
FlashFXP Scripter
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 132
Default

well, to create a cert you need makecert.exe, which you can google for. Then create a bat file with the following:

makecert.exe -r -n "CN=your.dns.name.here" -b 01/01/2004 -e 01/01/2006 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr CurrentUser -a sha1 -sk your.dns.name.here -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12

Replace 'your.dns.name.here' and save it as a .bat file in the same place as makecert.exe. Then create a service in FD to run the batch file. After this SSL should work and you may delete the service you just created
peep is offline   Reply With Quote
Old 10-05-2005, 02:45 PM   #5
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

I just tried that..

this is what i get.. :/

[R] 220 FTP Server ready.
[R] AUTH SSL
[R] 504 AUTH %s unsupported.
[R] Retrying after 30 seconds for

Am i not supposet to add the certificate somewhere?
zOrP is offline   Reply With Quote
Old 10-05-2005, 02:47 PM   #6
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

this is what firedaemon wrote..

Wed Oct 05 21:47:03 2005 [0xb68]: Starting: FireDaemon Pro v1.7 GA (Build 2123)
Wed Oct 05 21:47:03 2005 [0xb68]: Parameters for service 'ssl':
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: ServiceExe = 'C:\ioFTPD\cert\rsa.bat'
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: ServiceWorkingDir = 'C:\ioFTPD\cert'
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: ServiceParams = ''
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: ServiceDelay = 3000
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: DisplayName = 'ssl'
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: DisplayNamePrefixDefined = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: DisplayNamePrefix = 'FireDaemon Service: '
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: Description = ''
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: ConsoleApp = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: InteractWithDesktop = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: PreLaunchDelay = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: ShowWindow = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: JobType = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: SMFEnabled = 1
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: SMFFrequency = 5000
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: UponExit = 1
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: ShutdownDelay = 5000
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: UponFlap = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: FlapCount = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: AffinityMask = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: Priority = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: EventLogging = 1
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: RedirStdout = ''
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: RedirStderr = ''
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: RedirStderrToStdout = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: StartTime = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: EndTime = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: StartDate = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: EndDate = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: RunDays = 127
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: MonthFrom = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: MonthTo = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: MonthDay = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: RestartFreq = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: RestartDelay = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: DebugEnabled = 1
Wed Oct 05 21:47:03 2005 [0xb68]: Parameter: DebugLogFile = 'C:\ioFTPD\cert\debug.log'
Wed Oct 05 21:47:03 2005 [0xb68]: SvcConfig: startUpMode = 1
Wed Oct 05 21:47:03 2005 [0xb68]: SvcConfig: loadOrderGroup = ''
Wed Oct 05 21:47:03 2005 [0xb68]: SvcConfig: accountName = ''
Wed Oct 05 21:47:03 2005 [0xb68]: SvcConfig: accountPassword = ''
Wed Oct 05 21:47:03 2005 [0xb68]: SvcConfig: accountPasswordSet = 0
Wed Oct 05 21:47:03 2005 [0xb68]: SvcConfig: interactWithDesktop = 0
Wed Oct 05 21:47:03 2005 [0xb68]: Service 'ssl': Event no. 0 [0x0]
Wed Oct 05 21:47:03 2005 [0xb68]: Ckpt: 2 State: Start-pending [2]
Wed Oct 05 21:47:03 2005 [0xb68]: Starting scheduling thread
Wed Oct 05 21:47:03 2005 [0xb68]: Starting monitoring thread
Wed Oct 05 21:47:03 2005 [0xb68]: Ckpt: 3 State: Start-pending [2]
Wed Oct 05 21:47:03 2005 [0xb68]: Service initialization complete.
Wed Oct 05 21:47:03 2005 [0xb68]: Service 'ssl': Event no. 1 [0x1]
Wed Oct 05 21:47:03 2005 [0xb68]: Ckpt: 0 State: Running [4]
Wed Oct 05 21:47:03 2005 [0xb68]: Waiting on hSyncEvent.
Wed Oct 05 21:47:03 2005 [0x698]: Starting ScheduleSubProcess
Wed Oct 05 21:47:03 2005 [0x698]: Service 'ssl': Event no. 16 [0x10]
Wed Oct 05 21:47:03 2005 [0x698]: Launching process 'C:\ioFTPD\cert\rsa.bat'
Wed Oct 05 21:47:03 2005 [0x698]: Starting the process Non Interactively, flags = 0x00000024
Wed Oct 05 21:47:03 2005 [0x698]: CreateProcess() call returned 1
Wed Oct 05 21:47:03 2005 [0x698]: Child's initial thread has been resumed ok.
Wed Oct 05 21:47:03 2005 [0xdd8]: Starting MonitorSubProcess
zOrP is offline   Reply With Quote
Old 10-05-2005, 11:55 PM   #7
peep
Senior Member
FlashFXP Scripter
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 132
Default

Try checking the box: Console Application!
peep is offline   Reply With Quote
Old 10-06-2005, 01:01 AM   #8
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

works..
Just needed reboot of ioFTPD..
rehash not enough..
hehe
zOrP is offline   Reply With Quote
Reply

Tags
ideas, ioftpd, service, ssl, work

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:03 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)