Hi, we are using Chilkat 9.4.1.42 and are trying to use the Imap object (with Ssl = true) to connect to a mail server behind a load balancer configured with the ECDHE cipher. We are getting errors because there are no shared ciphers between the server and the load balancer. Would like to know if ECDHE is supported in that version of the library? Thanks.
Support for ECDHE cipher in Chilkat 9.4.1.42
Call GetServerSslCert() does not respect property connecttimeout
I am using ActiveX and when calling .GetServerSslCert() from HTTTP class, it does not respect property .connecttimeout when I am testing without Internet connectivity. My version is 9.5.0.64.
Chilkat Socket is fatal on webproxy only support http/https(does not support non-HTTP traffic)
Like http://www.chilkatforum.com/questions/8498/failing-to-connect-through-http-proxy issue, I get the same problem. As the answers I know the new chilkat socket connect to a webproxy(my squid web proxy which don't support non-HTTP traffic) with username&password always using CONNECT methond.
It is noticed that if visiting the remote resource with https url(https://www.xxx.com), it works well, because CONNECT method is the first step in the stardard visiting https process. However, when I visit the http url(http://www.xxx.com) resources with proxy server, the CONNECT method still be used in the process. The web proxy assumes that because the CONNECT method is being used, it's a SSL/TLS connection for HTTP. It notices that your port is not 443 and rejects it.
In the old chilkat(9.3.2), socket works well. With fiddler helping, I found the difference(between 9.3.2 and 9.5.0.68) is the old socket connect to http url resource with proxy server never use the CONNECT method.
My question is: Is there a solution to solve this? In an other word, Is there a function to avoid socket connect always use CONNECT method. Many proxy server don't support non-HTTP traffic. And issues will happen when these proxy servers used. I need a convenient switch to control the CONNECT method in my work.
Thanks,looking forward your reply.
passwords to change
I forget my password and receive an tmp password but i want to change my password, where ???
Failed to load result from task
In the latest version of my email archiving app I've changed most Chilkat related code to the async methods. I've now got 2 error reports from testers that this sometimes doesn't work. The code does 2 passes: first a header is downloaded. The message ID is checked if it's already in the database. If it's not then the full mail is downloaded with the following code:
dim messageID as Integer = CkoMessageSet.getID(counter - 1) CkoMailTask = CkoImap.FetchSingleAsMimeAsync(messageID, True) call CkoMailTask.run While CkoMailTask.Finished <> true CkoMailTask.SleepMs(50) wend if not CkoMailTask.TaskSuccess then Globals.theErrorLog.LogItem(CurrentMethodName + " " + MailboxPath + " task didn't finish") Return "" end if dim theBody as String = CkoMailTask.GetResultString if theBody = "" then globals.theErrorLog.LogItem(CurrentMethodName + " " + MailboxPath + " wasn't able to load result from task") globals.theErrorLog.LogItem(CurrentMethodName + " " + MailboxPath + setLastErrorForTask(CkoMailTask)) end if
And now the relevant part of the error log when the mail body is empty:
2017-08-25, 9:52:10 AM ImapIterator.GetNumberOfObjects INBOX 25517 2017-08-25, 12:57:58 PM ImapController.getMail INBOX wasn't able to load result from task 2017-08-25, 12:57:58 PM ImapController.getMail INBOXChilkatLog: FetchSingleAsMime: DllDate: May 25 2017 ChilkatVersion: 9.5.0.68 UnlockPrefix: xxx Architecture: Little Endian; 32-bit Language: MAC OS X C/C++ VerboseLogging: 0 msgId: 236230 bUid: 1 fetchSingleComplete: autoDownloadAttachments: 1 --fetchSingleComplete Success. --FetchSingleAsMime --ChilkatLog
Xojo 2017r1, macOS 10.12.6.
Is this a problem or can I ignore the mail?
Mit freundlichen Grüßen/Regards
Beatrix Willius
http://www.mothsoftware.com Mail Archiver X: The email archiving solution for professionals
Visual Studio 2008 Windows Mobile 6.5 (LNK2005) chilkat-9.5.0-mobile-vc9
I'm building a rather large dynamically linked Windows Mobile 6.5 application with Visual Studio 2008, now i want to use the capabilities of the Chilkat library. The Chilkat library chilkat-9.5.0-mobile-vc9 provides only the statically linked Chilkat_SPhone_M5.lib file. So this creates the link error LIBCMT.lib(invarg.obj) : error LNK2005: _invalid_parameter_noinfo is already defined in MSVCRT.lib(msvcr90.dll).
Is it possible to get the appropriate version of the chilkat library for Visual Studio 2008 Windows Mobile 6.5 Multi-threaded Debug DLL (/MDd) Multi-threaded Release DLL (/MD)
Delay execution from two chilkat non visual object in the same window
Programming language Powerbuilder I have two timer in a window i have a non visual object n_cst_chilkat and two object inherit from them n_cst_imeBi for the first timer and n_cst_scaneat for the second timer
When i call ls_JsonResponseStr = loo_Rest.FullRequestString(gnv_service_imebi.httpmethod, ls_method, loo_Json.Emit()) from the first timer if server has error and return 0 (i have time out) then second timer with the other non visual object waiting to execute the request the first object As I can make the two objects work independently from each other without creating this delay waiting for one to finish the other
signing file
Hello,
i want to know if it is possible and how to sign a file with rsa
regards
jean pierre senet
Is it possible to specify a chilkat dependency in a maven project?
How can this be done? I am on Java 8. Thanks!
User-Agent not populated in HTTP SynchronousRequest
I'm using the VB.Net 4 DLL (9.5.0.54) and when posting to a PHP page set to output the User-Agent, this is always blank.
I have tried using AddHeader on the request (HttpRequest), UserAgent on the HTTP object and SetRequestHeader on the HTTP object all without success.
I have also tried upgrading to the latest version of the DLL and this didn't seem to resolve the issue.
The PHP page is very basic and just reads $_SERVER['HTTP_USER_AGENT'] and outputs it to a file. Using a browser works fine.
Are there any suggestions to get this to work?
SSH / SFTP wont work anymore after Server update
Hi,
We are using Cilkat since many years, after SSH server update on a embedded machine, we are no more able to connect ( ActiveX with VBS ) this one. It did look like the Chilkat SSH client isnt able to find a agreement about the cypher to be used with the old chilkat version. I updated the Chilkat software - since then we still have failures - but they changed >> see log below. Looks like finding a agreement on encryption/MAC/compression took place ... but then at the end we find a timeout
sshDhGex: Socket operation timeout. Failed to read KEX_DH_GEX_REQUEST response
Any idea welcome - thx Michael
Connect_SFtp: DllDate: Mar 11 2016 ChilkatVersion: 9.5.0.56 UnlockPrefix: xxxxxxxxxxx /not public Username: xxxxxxxxxx /not public Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 1 SftpVersion: 0 connectInner: hostname: 172.21.88.21 port: 22 sshConnect: connectSocket: domainOrIpAddress: 172.21.88.21 port: 22 connectTimeoutMs: 10000 connect_ipv6_or_ipv4: This is an IPV4 numeric address. Domain to IP address resolution not needed. getAddressInfo: (leaveContext) connecting to IPV4 address... ipAddress: 172.21.88.21 createSocket: Setting SO_SNDBUF size sendBufSize: 262144 Setting SO_RCVBUF size recvBufSize: 4194304 (leaveContext) connect: Waiting for the connect to complete... ck_getsockname_ipv4: (leaveContext) myIP: 172.21.45.1 myPort: 4644 socket connect successful. (leaveContext 16ms) (leaveContext 32ms) (leaveContext 32ms) Established TCP/IP connection with SSH server Turning on TCP_NODELAY. (leaveContext 32ms) sshSetupConnection: clientIdentifier: SSH-2.0-PuTTY_Release_0.66 Sending client identifier... Done sending client identifier. Reading server version... initialDataFromSshServer: SSH-2.0-unknown serverVersion: SSH-2.0-unknown build_kexInit: preferRsaHostKeyAlgorithm: 1 (leaveContext) sendMessageInOnePacket: (leaveContext) KeyExchangeAlgs: algorithm: curve25519-sha256@libssh.org algorithm: ecdh-sha2-nistp256 algorithm: ecdh-sha2-nistp384 algorithm: ecdh-sha2-nistp521 algorithm: diffie-hellman-group-exchange-sha256 algorithm: diffie-hellman-group14-sha1 (leaveContext) HostKeyAlgs: algorithm: ssh-rsa (leaveContext) EncCS: algorithm: chacha20-poly1305@openssh.com algorithm: aes128-ctr algorithm: aes192-ctr algorithm: aes256-ctr algorithm: aes128-gcm@openssh.com algorithm: aes256-gcm@openssh.com (leaveContext) EncSC: algorithm: chacha20-poly1305@openssh.com algorithm: aes128-ctr algorithm: aes192-ctr algorithm: aes256-ctr algorithm: aes128-gcm@openssh.com algorithm: aes256-gcm@openssh.com (leaveContext) MacCS: algorithm: umac-64-etm@openssh.com algorithm: umac-128-etm@openssh.com algorithm: hmac-sha2-256-etm@openssh.com algorithm: hmac-sha2-512-etm@openssh.com algorithm: hmac-sha1-etm@openssh.com algorithm: umac-64@openssh.com algorithm: umac-128@openssh.com algorithm: hmac-sha2-256 algorithm: hmac-sha2-512 algorithm: hmac-sha1 (leaveContext 16ms) MacSC: algorithm: umac-64-etm@openssh.com algorithm: umac-128-etm@openssh.com algorithm: hmac-sha2-256-etm@openssh.com algorithm: hmac-sha2-512-etm@openssh.com algorithm: hmac-sha1-etm@openssh.com algorithm: umac-64@openssh.com algorithm: umac-128@openssh.com algorithm: hmac-sha2-256 algorithm: hmac-sha2-512 algorithm: hmac-sha1 (leaveContext) CompCS: algorithm: none algorithm: zlib@openssh.com (leaveContext) CompSC: algorithm: none algorithm: zlib@openssh.com (leaveContext) LangCS: (leaveContext) LangSC: (leaveContext) ChosenIncomingEncryption: aes256-ctr ChosenOutgoingEncryptoin: aes256-ctr ChosenIncomingMac: hmac-sha2-256 ChosenOutgoingMac: hmac-sha2-256 ChosenIncomingCompression: zlib@openssh.com ChosenOutgoingCompression: zlib@openssh.com ChosenKexAlgorithm: diffie-hellman-group-exchange-sha256 choose_hostkey_algorithm: preferRsaHostKeyAlgorithm: 1 (leaveContext) ChosenHostKeyAlgorithm: ssh-rsa numBits: 256 pbits: 4096 Using GEX Group. Sending KEX_DH_GEX_REQUEST... pbits: 4096 sendMessageInOnePacket: (leaveContext 16ms) Failed to read 1st block_size bytes.. sshDhGex: Socket operation timeout. Failed to read KEX_DH_GEX_REQUEST response (leaveContext 31047ms) (leaveContext 31094ms) Failed. (leaveContext 31109ms) IsConnected: DllDate: Mar 11 2016 ChilkatVersion: 9.5.0.56 UnlockPrefix: xxxxxxxxxxx /not public Username: xxxxxxxxxxx /not public Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 1 SftpVersion: 0 (leaveContext)
[ftp2] Events in UWP
Hello. I'm using ftp2 component and i'm trying to manage ftp events in a UWP Windows Phone application.
I need to get the percentage of completion of a SyncRemoteTreeAsync operation, or alternatively, the percentage/progress of PutFileAsync.
This is my ftp setup:
ftp.Hostname = "ftp.#####.com";
ftp.Username = "#####"
ftp.Password = "#####";
ftp.KeepSessionLog = true;
ftp.VerboseLogging = true;
ftp.AutoGetSizeForProgress = true;
Here's the event handlers:
ftp.ProgressInfo += Ftp_ProgressInfo;
ftp.PercentDone += Ftp_PercentDone;
ftp.BeginUploadFile += Ftp_BeginUploadFile;
When i call one of this methods:
result = await ftp.PutFileAsync(localFile.Path, localFiles.Name);
or
result = await ftp.SyncRemoteTreeAsync(storageFolder.Path, mode);
no one of this events are fired:
private void Ftp_ProgressInfo(object sender, ProgressInfoEventArgs eventArgs)
private void Ftp_BeginUploadFile(object sender, FtpTreeEventArgs args)
private void Ftp_PercentDone(object sender, PercentDoneEventArgs eventArgs)
what am I doing wrong? Thanks. Giancarlo.
SFTP ReadDir Disconnect
Getting the following error with SFTP ReadDir. this only happens on one server so far.
ReadDir:
DllDate: Aug 15 2013
ChilkatVersion: 9.4.1.42
UnlockPrefix: ***
Username: ***
Architecture: Little Endian; 32-bit
Language: Windows Perl
VerboseLogging: 0
SshVersion: SSH-2.0-SftpSSHD_1.4.31_Comments
SftpVersion: 3
handle: 494E56
getReadDirResponse:
readChannelData_2:
genRead_1:
Received DISCONNECT message
DisconnectReason: Failed to read binary packet data!
--genRead_1
--readChannelData_2
Received SSH disconnect.
disconnectCode: 2
disconnectReason: Failed to read binary packet data!
Failed to read SFTP packet.
--getReadDirResponse
Failed to read response to READDIR.
Failed.
--ReadDir
Socket Connect Problem(With WebProxy)
Unfortunately, the version 9.5.0.69 still don't fix the bug of CONNECT method through http proxy. Its details described in http://www.chilkatforum.com/questions/12800/chilkat-socket-is-fatal-on-webproxy-only-support-httphttpsdoes-not-support-non-http-traffic.
Please fix the bug.
thanks.
Access Violation in AuthenticatePwPk
Hi,
We're starting to see access violation in Chilkat.SFtp.AuthenticatePwPk on multiple servers (Windows 2012 R2) when trying to connect to remote site. We're using Chilkat 9.5.0.47 x64
So far I have not found any others with similar problems. I have been thinking of updating to latest version, but would like to know if the problem is solved there before updating.
Anyone with a similar problem - or even better - a solution?
Regards Morten Damgaard
OAuth process
Hi,
this is more of a process question. After getting some more grey hairs after figuring out how to setup the secret IDs at the Google website the code for connecting with OAuth to Gmail actually works.
But what comes then? Please correct me if I misunderstand something:
- I get an access token back which I stash the access token somewhere. Should this be encrypted?
- And then I pass the access token instead of a password in Chilkat.Imap.LoginAsync(UserName, Password)
Mit freundlichen Grüßen/Regards
Beatrix Willius
http://www.mothsoftware.com Mail Archiver X: The email archiving solution for professionals
Unhandled Exception with Email.LoadXML
Hi,
I am experiencing an unhandled exception when attempting to load an email from an XML file, but only when the file in question does not contain a complete XML email, for example an empty or corrupt file.
I have the following:
Try
Dim email as New Email
If email.LoadXml(sgFile) Then
'Email successfully loaded, do stuff
Else
'Write failure to log file...
End If
Catch ex As Exception
'Write error to log file...
End Try
My error handler does not trap the exception and the program terminates unexpectedly. In the system Event Log I see the following 2 events recorded:
Application Error
Faulting application name: MyProgram.exe, version: 1.1.10.0, time stamp: 0x59ad1431
Faulting module name: ChilkatDotNet46.dll, version: 9.5.0.65, time stamp: 0x58654057
Exception code: 0xc0000005
Fault offset: 0x00000000003adeaa
Faulting process id: 0x1f44
Faulting application start time: 0x01d3255b21bb005e
Faulting application path: C:Program Files (x86)MyMyProgram.exe
Faulting module path: C:Program Files (x86)MyChilkatDotNet46.dll
Report Id: 73e25f00-914e-11e7-80eb-00163e57b274
Faulting package full name:
Faulting package-relative application ID:
.Net Runtime
Application: MyProgram.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at <module>.ClsEmail.LoadXml(ClsEmail, XString)
at Chilkat.Email.LoadXml(System.String)
at MyProgram.MyProgram.MailChecker_ProcessFromXML(Boolean, Boolean ByRef)
at MyProgram.MyProgram.ImportTimer_Callback(System.Object, System.Timers.ElapsedEventArgs)
at System.Timers.Timer.MyTimerCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()
Is there any way I can prevent this from happening?
Cannot connect to IPSwitch WS_FTP (SFTP) using chillkat version 9.5.0.68
I'm having a problem to connect to the IPSwitch SFTP Server.
This is the sample code i'm using in my program.
success = sftp.Connect(hostname, port)
It return false when it reach the line above.
Dim port As Integer
Dim hostname As String
hostname = tempArrUrl(2) 'ftpServer
port = CInt(strPort)
' Load a .ppk PuTTY private key.
Dim puttyKey As New Chilkat.SshKey()
Dim ppkText As String = puttyKey.LoadText(puttyloc)
' "secret" is the actual password for the above PPK.
puttyKey.Password = puttyPW
success = puttyKey.FromPuttyPrivateKey(ppkText)
If success <> True Then
log.fErrorLog(sftp.LastErrorText & "-SFTPTest - Failed to Load Putty Key - " & trackNo)
End If
' Connect to an SSH/SFTP server
***success = sftp.Connect(hostname, port)***
If success <> True Then
log.fErrorLog(sftp.LastErrorText & "-SFTPTest - Failed toConnect to Server - " & trackNo)
End If
ChilkatLog: Connect_SFtp: DllDate: May 25 2017 ChilkatVersion: 9.5.0.68 UnlockPrefix: XXXXXX Architecture: Little Endian; 32-bit Language: .NET 2.0 VerboseLogging: 0 SftpVersion: 0 connectInner: sshConnect: Established TCP/IP connection with SSH server --sshConnect sshSetupConnection: clientIdentifier: SSH-2.0-PuTTY_Release_0.69 Sending client identifier... Done sending client identifier. Reading server version... initialDataFromSshServer: SSH-2.0-WS_FTP-SSH_8.5.0
serverVersion: SSH-2.0-WS_FTP-SSH_8.5.0
KeyExchangeAlgs:
algorithm: diffie-hellman-group1-sha1
algorithm: diffie-hellman-group14-sha1
algorithm: diffie-hellman-group14-sha256
algorithm: diffie-hellman-group-exchange-sha256
--KeyExchangeAlgs
HostKeyAlgs:
algorithm: ssh-dss
algorithm: ssh-rsa
--HostKeyAlgs
EncCS:
algorithm: aes256-ctr
algorithm: aes192-ctr
algorithm: aes128-ctr
algorithm: 3des-cbc
algorithm: blowfish-cbc
algorithm: aes256-cbc
algorithm: aes128-cbc
algorithm: cast128-cbc
--EncCS
EncSC:
algorithm: aes256-ctr
algorithm: aes192-ctr
algorithm: aes128-ctr
algorithm: 3des-cbc
algorithm: blowfish-cbc
algorithm: aes256-cbc
algorithm: aes128-cbc
algorithm: cast128-cbc
--EncSC
MacCS:
algorithm: hmac-md5
algorithm: hmac-sha1
algorithm: hmac-sha1-96
algorithm: hmac-md5-96
algorithm: hmac-sha2-256
algorithm: hmac-sha2-384
algorithm: hmac-sha2-512
--MacCS
MacSC:
algorithm: hmac-md5
algorithm: hmac-sha1
algorithm: hmac-sha1-96
algorithm: hmac-md5-96
algorithm: hmac-sha2-256
algorithm: hmac-sha2-384
algorithm: hmac-sha2-512
--MacSC
CompCS:
algorithm: none
--CompCS
CompSC:
algorithm: none
--CompSC
ChosenIncomingEncryption: aes128-ctr
ChosenOutgoingEncryptoin: aes128-ctr
ChosenIncomingMac: hmac-sha1
ChosenOutgoingMac: hmac-sha1
ChosenIncomingCompression: none
ChosenOutgoingCompression: none
ChosenKexAlgorithm: diffie-hellman-group-exchange-sha256
ChosenHostKeyAlgorithm: ssh-rsa
sshRawPacket: Socket connection closed.
sshDhGex: Socket connection closed.
Failed to read KEX_DH_GEX_REQUEST response
--sshSetupConnection
--connectInner
Failed.
--Connect_SFtp --ChilkatLog
C++ Builder Fatal Error in Linking
we have the problem, under 64 bit in one of your large projects, the 64 bit linker get a „fatal error“.
We don’t get a feedback from Embarcadero.
When we delete chilkatxe4.a from project and comment out the code, using chilkat, it works.
We only use the Zip components and crypt komponents from chilkat lib.
The chilkatxe4.a has a size of 36 MB.
Is it possible, that you compile us a "small" version of chilkatxe4.a? (only with Zip and Crpyt components?
Perhaps it is a linker memory size problem.
We use Tokyo.
Pre-installed certificate location for Verify
I've run into an issue using the Verify API: https://www.chilkatsoft.com/refdoc/delphiMimeRef.html
My trading partner is not including a public key as part of the signature. According to the Verify documentation:
A PKCS7 signature usually embeds both the signing certificate with its public key. Therefore, it is usually possible to verify a signature without the need to already have the certificate installed. If the signature does not embed the certificate, the Verify method will automatically locate and use the certificate if it was correctly pre-installed on the computer.
Where on the computer is "correctly pre-installed"? I've tried loading the public key of the signing cert, the intermediate CA, and the root all into Local Computer > Trusted Root, as well as Intermediate Certification Authorities, and Third-Party Root Certification Authorities. We still mark the incoming message as untrusted. Which store do those certificates need to be installed in?
Thanks!