Jump to content

AllanF

Members
  • Content Count

    26
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. Since my application is already in use at few customer's installations and is running smoothly, I did not have the courage to make major changes. It is actually the user passwords that I is saved in my databases with some basic encryption that were giving this problem. Putting both your valuable advice together I did make a routine that goes thru the String prior to the Send operation, character by character and recognizes Ord(...) > 65375. I am now converting that Password into Simple text and upon reaching destination reversing it again. Since my String's are made of a Tagged parts it is simple to extract the problem areas. Thank You for the support.
  2. In this way I can't seem to capture from the Client side using below method. Will the Client side code be different too ? FRcvdLine := TSSLWSocket(Sender).ReceiveStr ;
  3. Hi, I am using ICS Components with Delphi Seattle to send text between Server to Client and vice versa. But when using higher values like Chr(65470) the transfer does not happen correctly. Server Side: TSslWSocketServer Client : TClientConnection; Client.SendText('Hi '+Chr(65445)+Chr(65470)+#13#10); Client Side: TSSLWSocket procedure Tform_ClientSocket.SockClient_SsrvClientDataAvailable(Sender: TObject; ErrCode: Word); var FRcvdLine:WideString ; // AnsiString does not work either begin FRcvdLine := TSSLWSocket(Sender).ReceiveStrA ; Hi ?? Regards Allan
  4. My mistake was that I was sending first message to the Client from within the TSslWSocketServer.DataAvailable event. Took that off and it is now working perfectly.
  5. Hi, I am using TSslWSocket (TSslContext) to connect to TSslWSocketServer (using IcsHosts) Is it possible to avoid TSslContext on Client Side too ? I am asking because the Client side loses out some data initially upon just connecting. Without SSL same code work fine. I tried to prepare a small sample but that works fine with SSL too. I am using Delphi Seattle on Windows 10, Single machine, Two Exe's (Server and Client) for testing Regards Allan
  6. Hi I am currently using TSslFtpServer and TSslWSocketServer in combination with SslContext but there are connection issues coming up recently with Failed SSL Handshake before negotiation. Instead of chasing that I want to update to the current technique of using ICSHosts. Here I am stuck when trying to connect with FileZilla Client my Server comes into ClientConnect Event and then in ClientCommand Keyword is empty and then control goes to ClientDisconnect. Does not go into Validation etc. The problem is that there is no example using ICSHosts, so I used the OverbyteIcsSslFtpServ example removing the SslContext and adding a Item in IcsHosts Kindly note that mine is an application wherein I have a Server module running on one machine and I have several machines connecting to the Server There is no Website I can validate 'HostNames.Strings' with, so hope machine name will do ? DFM section of TSslFtpServer IcsHosts = < item HostNames.Strings = ('VMAF') HostEnabled = True HostTag = 'MyTag' SslCert = '01cert.pem' SslKey = '01key.pem' SslInter = 'cacert.pem' end> since 01cert.pem etc. are not working here I made fresh Certificates which I tested and are working with the SslContext. Regards Allan
  7. >> I'll email my unit that does all this. I looked at all the options suggested by Angus and Remy. Then I implemented the emailed Pas files and tested it with all possible options I could manage. Was most simple to include in my program and works perfectly fine. Very grateful to both for pulling me out of this one too.
  8. I have already tried the WM_POWERBROADCAST for GUID_MONITOR_POWER_ON with this I get notified even if display is begin turned off.
  9. In my Service I want to to receive notification when the system is suspended or resumed (Hibernate/Sleep) so that I can Close Active Sockets connections. Similar questions have got the answer 'the service must use a HandlerEx() callback via RegisterServiceCtrlHandlerEx()' but I have not been able to use it in Delphi. Need more assistance please.
  10. AllanF

    Only default ICS sample SSL certificate is working

    With OverbyteIcsPemTool.exe Menu item Create a self-signed certificate.
  11. AllanF

    Only default ICS sample SSL certificate is working

    I did create the PEM files and they are working fine but comments says they will expire by 20/01/2020 even if I put days 365 or 3650 I changed went into debug mode and changed days run time but same comment
  12. I am using ICS TSslFTPServer (FtpSslType=ftpAuthTls,ftpAuthSsl) and TSslWSocketServer (SslEnable=True) on my Server side application along with TSslContext wherein I am pointing to SslPrivKeyFile and SslCertFile to your sample 01key.pem and 01cert.pem respectively. My Client Application connects and all is well. problem-1) If I try to change the certificates to another of your provided examples or If I build with OpenSSL it gives error 'Can't read certificate file ... error:0909006C:PEM routines:get_name:no start line' problem-2) Using SSL I lose compatibility with WinXP and probably with Vista too. Is there a workaround ? (Angus has suggested me to use the IcsHosts property instead of SslContext but I will need to do more work to get it working for me, hope I am using above mentioned components properly to begin with SSL) (How I generated my own PEM files openssl genpkey -aes256 -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out 01key.pem openssl pkey -in 01key.pem -out 01cert.pem -pubout)
  13. I am using TSslFtpServer , TSslWSocketServer along with TSSLContext component successfully when using the SslCAFile , SslCertFile and SslPrivateKeyFile properties to point to files on the Hard Disk. I noticed there are matching SslCALines , SslCertLines and SslPrivateKeyLines . I filled these properties with text from the corresponding files but it did not work. I am asking this because I would prefer not to expose the Certificate files.
  14. AllanF

    Some assistance on SSL required

    A huge thanks for all the help you'll have provided. Truly appreciate.
  15. AllanF

    Some assistance on SSL required

    Considering all the advice I prefer to use the P12 files and stick to SSL as it will work for both Sockets and FTP. Just wanted some more clarity. Is the Username and password used in the connect statement of the FTP Client and Authenticated at the FTP Server have to do anything with preparation of the SSL Certificates ? I am trying to create Self Signed Certificates using IcsSslBuildCerts.bat and I get several files. I don't know which to use , whatever combination is not working. RootKey.pem, RootReq.pem, RootCert.pem, Root.pem ServerCAkey.pem, ServerCAreq.pem, ServerCAcert.pem, ServerCA.pem, ServerKey.pem, ServerReq.pem, Server.pem, ServerCert.pem ClientKey.pem, ClientReq.pem, ClientCert.pem, Client.pem Using ICS demo 01cert.pem, 01key.pem and cacert.pem works fine.
×