Quantcast
Channel: Chilkat Forum - latest questions
Viewing all 1061 articles
Browse latest View live

CkZip zipx (lzma) compression support

$
0
0

Hello,

CkZip already supports zipx, but only for decompression.

Will zipx compression (lzma in particular) be supported some time in the near future?

(If not, I will have to look somewhere else for lzma compression…)

Thanks!

Sune


mime 9.4.1.0 vs 9.5.0.55

$
0
0

We discovered an issue on the mime part which we ONLY got to work with version 9.4.1.0. When decrypting a mime mail object no version before !!or after!! 9.4.1.0 can decrypt our mime. Using version 9.4.1 works just like expected

Decrypt:
    DllDate: Dec 29 2015
    ChilkatVersion: 9.5.0.55
    UnlockPrefix: XXXDEUSMIME
    Username: --------:-------
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    VerboseLogging: 0
    decryptMime:
        unenvelope:
            loadPkcs7Der:
                der_to_xml:
                    (leaveContext)
                loadPkcs7Xml:
                    Pkcs7_EnvelopedData:
                        AlgorithmIdentifier_loadXml:
                            RC2_CBC
                            IV: K2gyn/LeD78=
                            KeyLength: 40
                            (leaveContext)
                        numRecipients: 1
                        RecipientInfo:
                            IssuerAndSerialNumber:
                                issuerCommonName: 
                                issuerCountry: XX
                                issuerState: 
                                issuerLocality: 
                                issuerOrganization: XXX
                                (leaveContext)
                            AlgorithmIdentifier_loadXml:
                                (leaveContext)
                            encryptedKeyNumBytes: 128
                            (leaveContext)
                        (leaveContext)
                    (leaveContext)
                (leaveContext)
            unEnvelope3:
                unEnvelope_encrypted:
                    findMatchingPrivateKeyFromSysCerts:
                        numRecipientInfos: 1
                        certSerialNumber: 00
                        certIssuerCN: 
                        subjectKeyIdentifier: 
                        findPrivateKey:
                            findCertificate:
                                findCertB:
                                    (leaveContext)
                                findCertBySerialAndIssuerCN:
                                    msFindMsCertBySerialAndIssuerCN:
                                        openCertStore:
                                            (leaveContext)
                                        openCertStore:
                                            (leaveContext)
                                        openCertStore:
                                            (leaveContext)
                                        openCertStore:
                                            (leaveContext)
                                        openCertStore:
                                            (leaveContext)
                                        openCertStore:
                                            (leaveContext)
                                        openCertStore:
                                            (leaveContext)
                                        openCertStore:
                                            (leaveContext)
                                        (leaveContext)
                                    (leaveContext)
                                (leaveContext)
                            (leaveContext)
                        findPrivateKey:
                            findCertificate:
                                findCertB:
                                    (leaveContext)
                                findCertBySerialAndIssuerCN:
                                    msFindMsCertBySerialAndIssuerCN:
                                        (leaveContext)
                                    (leaveContext)
                                (leaveContext)
                            (leaveContext)
                        (leaveContext)
                    No certificate with private key found.
                    (leaveContext)
                (leaveContext)
            Failed to unenvelope message
            (leaveContext)
        Failed.
        (leaveContext)
    Failed.
    (leaveContext)

header missing error

$
0
0

I am using visual studio 2013 pro using latest chilkat build: chilkat-9.5.0-x86-vc12

c:chillchilkat-9.5.0-x86-vc12includechilkatDefs.h(70): fatal error C1083: Cannot open include file: 'SystemTime.h': No such file or directory

in chilkatdefs.h I must comment out lines 70 and 71 and error goes away

see below //#include "SystemTime.h" //#include "FileTime.h"

so what is up????

Password & public key authentication for login into a SFTP server?

$
0
0

I’m trying to code in VB.NET both a password & public key authentication for login into a SFTP server.

I tried following this example, but it did not work. My public key is encrypted from the customer.

It seems this example uses a private key, which I do not have, so I’m confused on how to do it.

https://www.example-code.com/vbnet/sftp_pubkeyAuthentication.asp

How do I accomplish this task?

Method to validate an XML string or file against Schema?

$
0
0

Trying to determine if there is a way to validate the contents of a file, or memory location, representing an XML string against a schema? Something like: bool result = CkValidateXML (schemaFile, xmlFile); or bool result = CkValidate XML (schemaString, xmlString);

Thanks in advance!

VR/JW

Error connecting to SSL/TLS socket multiple times from the same machine

$
0
0

I have a client application connecting to a server using SSL/TLS. When I try to reconnect to the server socket after disconnecting, I get an error on the client handshake. Currently I am attempting to do this by explicitly specifying the client certificate.

ChilkatLog: Connect_Socket(157ms): ChilkatVersion: 9.5.0.59 clsSocketConnect(157ms): hostname: 192.168.100.101 port: 3600 tls: 1 maxWaitMs: 100000 socket2Connect(63ms): connect2(63ms): hostname: 192.168.100.101 port: 3600 ssl: 1 connectImplicitSsl(63ms): Clearing TLS client certificates. connectSocket: domainOrIpAddress: 192.168.100.101 port: 3600 connectTimeoutMs: 100000 connect_ipv6_or_ipv4: This is an IPV4 numeric address. Domain to IP address resolution not needed. connecting to IPV4 address... ipAddress: 192.168.100.101 createSocket: Setting SO_SNDBUF size sendBufSize: 262144 Setting SO_RCVBUF size recvBufSize: 4194304 --createSocket connect: Waiting for the connect to complete... myIP: 192.168.100.101 myPort: 61013 socket connect successful. --connect --connect_ipv6_or_ipv4 --connectSocket clientHandshake(63ms): certChain(16ms): subjectDN: CN=opsl_ccs --certChain cacheClientCerts: Cached TLS client certificates. certChain: subjectDN: CN=opsl_ccs --certChain --cacheClientCerts clientHandshake2(47ms): readHandshakeMessages(47ms): sockRecv: Socket operation timeout. Failed to read beginning of SSL/TLS record. b: 0 dbSize: 0 nReadNBytes: 0 --readHandshakeMessages --clientHandshake2 --clientHandshake Client handshake failed. (3) --connectImplicitSsl ConnectFailReason: 103 --connect2 --socket2Connect Failed. --clsSocketConnect Failed. --Connect_Socket --ChilkatLog

VerifySMTPConnection working with VB6 but not with .NET

$
0
0

Hello.

I have a license for both the ActiveX and for the .NET version of Chilkat.

For both I'm using exactely the same ChilkatMail properties. With VB6, it works fine, but the same code fails in VB.NET in the function "VerifySMTPConnection".

Here is the LastError log for VB6:

  * VerifySMTPConnection:1
ChilkatLog:
  VerifySmtpConnection:
    DllDate: Jun 10 2014
    ChilkatVersion: 9.5.0.40
    UnlockPrefix: MYCHILKATUNLOCKKEY
    Username: MYUSER-PC:MyUser
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    Checking TCP/IP connectivity to the SMTP server.
    This does not check the login/password.
    AutoFix: SMTP port 465 is typically for implicit SSL/TLS.
    To prevent auto-fix, set the AutoFix property = False/0
    Checking connectivity to SMTP server smtp.gmail.com:465
    smtp_host: smtp.gmail.com
    smtp_port: 465
    socket2Connect:
      connect2:
        connectImplicitSsl:
          checkServerCert:
            Not verifying server certificate...
            Set the RequireSslCertVerify property to enable verification.
          --checkServerCert
          Secure Channel Established.
        --connectImplicitSsl
      --connect2
    --socket2Connect
    SmtpCmdResp: 220 smtp.gmail.com ESMTP 5sm543244wrb.9 - gsmtp
    ESMTP server smtp.gmail.com:465 is reachable
    checkSmtpConnection: Elapsed time: 234 millisec
    Success.
  --VerifySmtpConnection
--ChilkatLog

And this is the log for VB.NET:

* VerifySMTPConnection:False
ChilkatLog:
  VerifySmtpConnection:
    DllDate: Aug 30 2017
    ChilkatVersion: 9.5.0.69
    UnlockPrefix: MYCHILKATUNLOCKKEY
    Architecture: Little Endian; 32-bit
    Language: .NET 4.6
    VerboseLogging: 0
    AutoFix: SMTP port 465 is typically for implicit SSL/TLS.
    To prevent auto-fix, set the AutoFix property = False/0
    smtpConnectAndAuthenticate:
      smtpConnect:
        smtpHostname: smtp.gmail.com
        smtpPort: 465
        connectionIsReady:
          Need new SMTP connection
        --connectionIsReady
        smtpSocketConnect:
          socketOptions:
            SO_SNDBUF: 262144
            SO_RCVBUF: 4194304
            TCP_NODELAY: 1
            SO_KEEPALIVE: 1
          --socketOptions
        --smtpSocketConnect
        smtpGreeting:
          readSmtpResponse:
            SmtpCmdResp: 220 smtp.gmail.com ESMTP t37sm617192wrc.28 - gsmtp
          --readSmtpResponse
        --smtpGreeting
        startTLS:
          sendCmdToSmtp:
            SmtpCmdSent: EHLO MYUSER-PC<crlf>
          --sendCmdToSmtp
          readSmtpResponse:
            SmtpCmdResp: 250-smtp.gmail.com at your service, [178.203.233.193]
            SmtpCmdResp: 250-SIZE 35882577
            SmtpCmdResp: 250-8BITMIME
            SmtpCmdResp: 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
            SmtpCmdResp: 250-ENHANCEDSTATUSCODES
            SmtpCmdResp: 250-PIPELINING
            SmtpCmdResp: 250-CHUNKING
            SmtpCmdResp: 250 SMTPUTF8
          --readSmtpResponse
          sendCmdToSmtp:
            SmtpCmdSent: STARTTLS<crlf>
          --sendCmdToSmtp
          readSmtpResponse:
            SmtpCmdResp: 530-5.5.1 Authentication Required. Learn more at
            SmtpCmdResp: 530 5.5.1  https://support.google.com/mail/?p=WantAuthError t37sm617192wrc.28 - gsmtp
          --readSmtpResponse
          Non-success STARTTLS response.
        --startTLS
      --smtpConnect
    --smtpConnectAndAuthenticate
    Failed.
  --VerifySmtpConnection
--ChilkatLog

What am I doing wrong here?

I'm also attaching my code.

This is the VB6 code:

Option Explicit

Private Sub Form_Load()

 Dim ch As New Chilkat_v9_5_0.ChilkatMailMan
 ch.UnlockComponent m_sUnlockKey

 ch.AutoFix = 1
 ch.MailHost = "pop.gmail.com"
 ch.MailPort = 995
 ch.PopUsername = m_sUserName
 ch.PopPassword = m_sPass
 ch.SmtpHost = "smtp.gmail.com"
 ch.SmtpPassword = m_sPass
 ch.SmtpUsername = m_sUserName
 ch.SmtpPort = 465
 ch.SmtpAuthMethod = ""
 ch.PopSsl = 1
 ch.Pop3SPA = 0
 ch.StartTLS = 1
 ch.SmtpSsl = 1

 Debug.Print "mailhost: " & ch.MailHost
 Debug.Print "mailport: " & ch.MailPort
 Debug.Print "popusername: " & ch.PopUsername
 Debug.Print "poppassword: " & ch.PopPassword
 Debug.Print "smtphost: " & ch.SmtpHost
 Debug.Print "smtppassword: " & ch.SmtpPassword
 Debug.Print "smtpusername: " & ch.SmtpUsername
 Debug.Print "smtpport: " & ch.SmtpPort
 Debug.Print "smtphost: " & ch.SmtpHost
 Debug.Print "smtpauthmethod: " & ch.SmtpAuthMethod
 Debug.Print "popssl: " & ch.PopSsl
 Debug.Print "pop3spa: " & ch.Pop3SPA
 Debug.Print "starttls: " & ch.StartTLS
 Debug.Print "smtpssl : " & ch.SmtpSsl

 Dim bVerifyPopConnection As Boolean
 Dim bVerifyPopLogin As Boolean
 Dim bVerifySmtpConnection As Boolean
 Dim bVerifySmtpLogin As Boolean

 Dim sErrVerifyPopConnection$
 Dim sErrVerifyPopLogin$
 Dim sErrVerifySmtpConnection$
 Dim sErrVerifySmtpLogin$

 Dim m_sMailReport$
 m_sMailReport = ""

 'Test incoming
 Dim lRetInCon&
 Dim sRetInCon$
 lRetInCon = ch.VerifyPopConnection
 sRetInCon = ch.LastErrorText
 bVerifyPopConnection = CBool(lRetInCon)
 m_sMailReport = m_sMailReport & "* VerifyPopConnection:" & lRetInCon & vbNewLine & pCleanMailReport(sRetInCon) & vbNewLine & vbNewLine

 Dim lRetInLogin&
 Dim sRetInLogin$
 lRetInLogin = ch.VerifyPopLogin
 sRetInLogin = ch.LastErrorText
 bVerifyPopLogin = CBool(lRetInLogin)
 m_sMailReport = m_sMailReport & "* VerifyPopLogin: " & lRetInLogin & vbNewLine & pCleanMailReport(sRetInLogin) & vbNewLine & vbNewLine

 'Test outgoing
 Dim lRetOutCon&
 Dim sRetOutCon$
 lRetOutCon = ch.VerifySmtpConnection
 sRetOutCon = ch.LastErrorText
 bVerifySmtpConnection = CBool(lRetOutCon)
 m_sMailReport = m_sMailReport & "* VerifySMTPConnection:" & lRetOutCon & vbNewLine & pCleanMailReport(sRetOutCon) & vbNewLine & vbNewLine

 Dim lRetOutLogin&
 Dim sRetOutLogin$
 lRetOutLogin = ch.VerifySmtpLogin
 sRetOutLogin = ch.LastErrorText
 bVerifySmtpLogin = CBool(lRetOutLogin)
 m_sMailReport = m_sMailReport & "* VerifySMTPLogin:" & lRetOutLogin & vbNewLine & pCleanMailReport(sRetOutLogin) & vbNewLine & vbNewLine

 Debug.Print m_sMailReport

End Sub

Private Function pCleanMailReport(ByVal value As String) As String

    Dim s As String
    s = value
    s = Replace(s, m_sUserName, "<MYUSERNAME>")
    s = Replace(s, m_sPass, "<MYPASSWORD>")
    s = Replace(s, m_sUnlockKey, "MYCHILKATUNLOCKKEY")

    pCleanMailReport = s

End Function

And this is my VB.NET code:

Public Class Form1

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    Dim ch As New Chilkat.MailMan
    ch.UnlockComponent(_sUnlockKey)

    ch.AutoFix = True
    ch.MailHost = "pop.gmail.com"
    ch.MailPort = 995
    ch.PopUsername = _sUserName
    ch.PopPassword = _sPass
    ch.SmtpHost = "smtp.gmail.com"
    ch.SmtpPassword = _sPass
    ch.SmtpUsername = _sUserName
    ch.SmtpPort = 465
    ch.SmtpAuthMethod = ""
    ch.PopSsl = True
    ch.Pop3SPA = False
    ch.StartTLS = True
    ch.SmtpSsl = True

    Debug.Print("mailhost: " & ch.MailHost)
    Debug.Print("mailport: " & ch.MailPort)
    Debug.Print("popusername: " & ch.PopUsername)
    Debug.Print("poppassword: " & ch.PopPassword)
    Debug.Print("smtphost: " & ch.SmtpHost)
    Debug.Print("smtppassword: " & ch.SmtpPassword)
    Debug.Print("smtpusername: " & ch.SmtpUsername)
    Debug.Print("smtpport: " & ch.SmtpPort)
    Debug.Print("smtphost: " & ch.SmtpHost)
    Debug.Print("smtpauthmethod: " & ch.SmtpAuthMethod)
    Debug.Print("popssl: " & ch.PopSsl)
    Debug.Print("pop3spa: " & ch.Pop3SPA)
    Debug.Print("starttls: " & ch.StartTLS)
    Debug.Print("smtpssl : " & ch.SmtpSsl)

    Dim _sMailReport As String = String.Empty

    'Test incoming
    Dim bRetInCon As Boolean = ch.VerifyPopConnection()
    Dim sRetInCon As String = ch.LastErrorText

    _sMailReport = _sMailReport & "* VerifyPopConnection:" & CStr(bRetInCon) & Environment.NewLine & pCleanMailReport(sRetInCon) & Environment.NewLine & Environment.NewLine

    Dim bRetInLogin As Boolean = ch.VerifyPopLogin()
    Dim sRetInLogin As String = ch.LastErrorText
    _sMailReport = _sMailReport & "* VerifyPopLogin: " & CStr(bRetInLogin) & Environment.NewLine & pCleanMailReport(sRetInLogin) & Environment.NewLine & Environment.NewLine

    'Test outgoing
    Dim bRetOutCon As Boolean = ch.VerifySmtpConnection()
    Dim sRetOutCon As String = ch.LastErrorText
    _sMailReport = _sMailReport & "* VerifySMTPConnection:" & CStr(bRetOutCon) & Environment.NewLine & pCleanMailReport(sRetOutCon) & Environment.NewLine & Environment.NewLine

    Dim bRetOutLogin As Boolean = ch.VerifySmtpLogin()
    Dim sRetOutLogin As String = ch.LastErrorText
    _sMailReport = _sMailReport & "* VerifySMTPLogin:" & CStr(bRetOutLogin) & Environment.NewLine & pCleanMailReport(sRetOutLogin) & Environment.NewLine & Environment.NewLine

    Debug.Print(_sMailReport)

End Sub
Private Function pCleanMailReport(ByVal value As String) As String

    Dim s As String = value
    s = Replace(s, _sUserName, "<MYUSERNAME>")
    s = Replace(s, _sPass, "<MYPASSWORD>")
    s = Replace(s, _sUnlockKey, "MYCHILKATUNLOCKKEY")

    Return s

End Function

End Class

The debug messages (Debug.Print("mailhost: " & ch.MailHost), etc.) show me that all properties of the ChilkatMail are set to the same in VB6 and in VB.NET.

Foxro Simple Get using Access Token

$
0
0

Hello, I have been given an API specification which includes an access token that maps to my user and password on the host system. I'm trying to do a simple GET. When I post the example URL below in Google Chrome it produces the correct JSON response.

http://my_token@hostdomain.net/employees/441/address.json

So I'm trying to duplicate using Chilkat Active X:

loHttp = CreateObject('Chilkat_9_5_0.Http')
lcResp = loHttp.quickgetstr("http://my_token@hostdomain.net/employees/441/address.json")

And the response is producing error 401 Unauthorized. Any clues on sending a GET with an access code?

Thanks.


Using p12 purchased other companies (like comodo) for OAuth2

How to Change Directory in SSH/SFTP?

$
0
0

How to change directory and upload file to desired path instead of RealPath?

Async FTP with Progress Info

$
0
0

In the example you provided in your website how to upload/download async FTP with Progress Info (https://www.example-code.com/objc/async_ftp_progress.asp) you used the CkoTask to keep tracking the progress status and the completion status of the task inside a while loop sleeping every 0.1seconds. I was wondering if there was a way to use the CkoTask with the EventCallbackObject, demonstrated in the sync FTP Upload with progress event callback (https://www.example-code.com/objc/ftp_upload_with_progress.asp), this way I don’t need to stay in the while loop and check every X seconds if something has happened, letting the EventCallbackObject alert me when something has happened. One of the goals to use the CkoTask is that we can cancel the task whenever the user wants to cancel something.

2-legged CkOAuth2

$
0
0

Is a 2-legged CkOAuth2 authorization already supported? I only found 3-legged CkOAuth2 doc and samples.

Where do I find my licenses

$
0
0

Hello!

Something is wrong with one of my licenses, and I would need to check out if I'm using the correct one.

I don't find the license in the invoice email anymore.

Does anybody know where I can find it here?

Thank you very much for the help.

OAUTH2 Gmail authentication fails

$
0
0

Problem (Authentication failed):

Initially Gmail authentication through Chilkat failed and after analyzing we found that we have to turn ON "allow less secure apps" for the Gmail account to login successfully.

Proposed Solution by Chilkat:

To avoid turning ON "allow less secure apps" in every Gmail account, we followed solution provided at GMail OAuth2 example

Please find the detailed steps we followed and error code below and help us to resolve this:

1) We created a certificate file(.p12).

Through the service account(in developer console) and we have the service account email address as well.

2) I am able to generate accesstoken successfully.

NSString *accessToken = [http G_SvcOauthAccessToken: iss 
    scope: scope subEmail: sub numSec: [NSNumber numberWithInt: numSec] cert: cert];

3) Connecting to "imap.gmail.com mail" server succeeded.

success = [imap Connect: @"imap.gmail.com"];

4) But when I try to authenticate to gmail account using any gmail ID the authentication fails.

success = [imap Login: @"user@gmail.com" password: accessToken];

Filing possible bug without support

$
0
0

Hello.

Currently I can't afford a new license for support. However, I think I found a bug that should be fixed. Can I file it anyways?

Thanks for a reply.


MailMan.VerifySmtpConnection problem

$
0
0

I'm using the CkMailMan object's VerifySmtpConnection method to verify SMTP details. In a previous build of the Chilkat library (from about a year ago) this worked fine. With the latest version (downloaded last week), however, it is returning false for exactly the same code. This is the lastErrorText after the failed response (a few details altered for privacy):

ChilkatLog:
  VerifySmtpConnection:
    DllDate: Dec 12 2012
    UnlockPrefix: [...snipped...]
    Username: NICK:Nick
    Architecture: Little Endian; 32-bit
    Language: Visual C++ 9.0
    VerboseLogging: 1
    Checking TCP/IP connectivity to the SMTP server.
    This does not check the login/password.
    AutoFix: SMTP port 25 is typically for unencrypted or explicit SSL/TLS.
    To prevent auto-fix, set the AutoFix property = False/0
    Checking connectivity to SMTP server [...snipped...]:25
    smtp_host: [...snipped...]
    smtp_port: 25
    ConnectTimeoutMs_1: 30000
    calling ConnectSocket2
    IPV6 enabled connect with NO heartbeat.
    connectingTo: [...snipped...]
    resolveHostname1:
      dnsCacheLookup: [...snipped...]
      dnsCacheHit: [...snipped...]
    --resolveHostname1
    GetHostByNameHB_ipv4: Elapsed time: 0 millisec
    myIP_1: 192.168.1.30
    myPort_1: 2520
    connect successful (1)
    clientHelloMajorMinorVersion: 3.1
    buildClientHello:
      majorVersion: 3
      minorVersion: 1
      numRandomBytes: 32
      sessionIdSize: 0
      numCipherSuites: 10
      numCompressionMethods: 1
    --buildClientHello
    readIncomingTls_serverHello:
      readTlsRecord:
        Timeout waiting to read socket or accept connection
        timeoutMs: 30000
        Failed to read TLS record (2)
        tlsRec_msg: 91
        msgLen: 8307
      --readTlsRecord
    --readIncomingTls_serverHello
    Expected ServerHello but did not receive it.
    Client handshake failed. (3)
    Failed to connect to SMTP server.
  --VerifySmtpConnection
  Failed.
--ChilkatLog

From the previous, working, build of Chilkat libraries, this is the last error text after VerifySmtpConnection succeeds:

ChilkatLog:
  VerifySmtpConnection:
    DllDate: Jan  6 2011
    UnlockPrefix: [...snipped...]
    Username: Nick
    Component: Visual C++ 9.0
    Checking TCP/IP connectivity to the SMTP server.
    This does not check the login/password.
    Checking connectivity to SMTP server [...snipped...]:25
    smtp_host: [...snipped...]
    smtp_port: 25
    ConnectTimeoutMs: 30000
    calling ConnectSocket2
    Connect using IPV4.
    Invalid protocol number
    ai_protocol: 0
    ipAddress: [...snipped...]
    socketHandle: 0x3d4
    ai_addrlen: 16
    ai_addr: 0200 0019 3EAC AF8A 0000 0000 0000 0000

    myIP_3: 192.168.1.30
    myPort_3: 2454
    connect successful.
    ESMTP server [...snipped...]:25 is reachable
    Success.

There's quite a lot different there. Where am I going wrong? I'm setting the SmtpHost, SmptUsername, SmtpPassword, SmtpSsl and SmtpLoginDomain settings before calling VerifySmtpConnection. I've tried with AutiFix set to true and false - same result.

To note, the Username field in the lastErrorText is different from the previous build to the current build; current build shows my machine name prefixed to my username (NOT the domain name), whereas previous build only shows the username (no domain or machine prefix).

Also if it is of interest, the test for the current chilkat build takes about twice as long as the previous one (though that may be due to it failing somewhere...).

Thanks for any advice!

ssh fails OpenSessionChannel (open ssh 3.5)

$
0
0

Using ssh chilkat 9.5.0.69 .net (Server is openSSH 3.5)
In a 2 node network, trying to connect and send commands, but OpenSessionChannel hangs and never exit. Putty can connect to the server without any problem. We manage multiple servers having the same openSSH version and configuration that we cannot change, so we wonder how to solve this.

Thanks

DebugLogFile with verbose logging and ReadTimeoutMs = 10 seconds:

Connect_Ssh:
    DllDate: Aug 30 2017
    ChilkatVersion: 9.5.0.69
    UnlockPrefix: LOCALPSSH
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    VerboseLogging: 1
    connectInner:
        hostname: x.y.z.1
        port: 22
        preferRsaHostKeyAlgorithm: 1
        sshConnect:
            connectSocket:
                domainOrIpAddress: x.y.z.1
                port: 22
                connectTimeoutMs: 30000
                connect_ipv6_or_ipv4:
                    This is an IPV4 numeric address.
                    Domain to IP address resolution not needed.
                    getAddressInfo:
                        (leaveContext)
                    findIpAddrInfo:
                        (leaveContext)
                    connecting to IPV4 address...
                    ipAddress: x.y.z.1
                    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: x.y.z.2
                        myPort: 49817
                        socket connect successful.
                        (leaveContext 16ms)
                    (leaveContext 31ms)
                (leaveContext 47ms)
            Established TCP/IP connection with SSH server
            Turning on TCP_NODELAY.
            (leaveContext 47ms)
        sshSetupConnection:
            clientIdentifier: SSH-2.0-PuTTY_Release_0.69
            Sending client identifier...
            Done sending client identifier.
            Reading server version...
            initialDataFromSshServer: SSH-1.99-OpenSSH_3.5p1

serverVersion: SSH-1.99-OpenSSH_3.5p1
            build_kexInit:
                preferRsaHostKeyAlgorithm: 1
                (leaveContext)
            KeyExchangeAlgs:
                algorithm: diffie-hellman-group-exchange-sha1
                algorithm: diffie-hellman-group1-sha1
                (leaveContext)
            HostKeyAlgs:
                algorithm: ssh-rsa
                algorithm: ssh-dss
                (leaveContext)
            EncCS:
                algorithm: aes128-cbc
                algorithm: 3des-cbc
                algorithm: blowfish-cbc
                algorithm: cast128-cbc
                algorithm: arcfour
                algorithm: aes192-cbc
                algorithm: aes256-cbc
                algorithm: rijndael-cbc@lysator.liu.se
                (leaveContext)
            EncSC:
                algorithm: aes128-cbc
                algorithm: 3des-cbc
                algorithm: blowfish-cbc
                algorithm: cast128-cbc
                algorithm: arcfour
                algorithm: aes192-cbc
                algorithm: aes256-cbc
                algorithm: rijndael-cbc@lysator.liu.se
                (leaveContext 16ms)
            MacCS:
                algorithm: hmac-md5
                algorithm: hmac-sha1
                algorithm: hmac-ripemd160
                algorithm: hmac-ripemd160@openssh.com
                algorithm: hmac-sha1-96
                algorithm: hmac-md5-96
                (leaveContext 15ms)
            MacSC:
                algorithm: hmac-md5
                algorithm: hmac-sha1
                algorithm: hmac-ripemd160
                algorithm: hmac-ripemd160@openssh.com
                algorithm: hmac-sha1-96
                algorithm: hmac-md5-96
                (leaveContext)
            CompCS:
                algorithm: none
                algorithm: zlib
                (leaveContext)
            CompSC:
                algorithm: none
                algorithm: zlib
                (leaveContext)
            LangCS:
                (leaveContext)
            LangSC:
                (leaveContext)
            ChosenIncomingEncryption: aes128-cbc
            ChosenOutgoingEncryptoin: aes128-cbc
            ChosenIncomingMac: hmac-sha1
            ChosenOutgoingMac: hmac-sha1
            ChosenIncomingCompression: zlib
            ChosenOutgoingCompression: zlib
            ChosenKexAlgorithm: diffie-hellman-group-exchange-sha1
            choose_hostkey_algorithm:
                (leaveContext)
            ChosenHostKeyAlgorithm: ssh-rsa
            numBits: 128
            pbits: 1024
            Using GEX Group.
            Sending KEX_DH_GEX_REQUEST...
            pbits: 1024
            Received GEX Group.
            sendDhInit:
                create_E:
                    (leaveContext 31ms)
                Sent: SSH2_MSG_KEX_DH_GEX_INIT
                (leaveContext 31ms)
            computeExchangeHash:
                dhReplyMsgType: 33
                serverVersion: [SSH-1.99-OpenSSH_3.5p1]
                Using SHA-1 for Key Exchange Hash
                (leaveContext)
            verifyHostKey:
                rsaHostKeyVerify:
                    alg: ssh-rsa
                    hostKeyNumBits: 1024
                    verifyHashSsh:
                        Pkcs1_5_decode:
                            (leaveContext)
                        (leaveContext)
                    (leaveContext)
                RSA host key signature verification success.
                (leaveContext 16ms)
            Sending newkeys to server...
            Expecting newkeys from server...
            SSH Key Exchange Success.
            installNewKeys:
                m_isRekey: 0
                Outgoing compression is now zlib.
                Incoming compression is now zlib.
                Outgoing encryption is now AES 128 CBC
                initCrypt_aes2:
                    (leaveContext)
                initCrypt_aes2:
                    (leaveContext 15ms)
                (leaveContext 15ms)
            (leaveContext 265ms)
        Turning on TCP_NODELAY.
        socketOptions:
            SO_SNDBUF: 262144
            SO_RCVBUF: 4194304
            TCP_NODELAY: 1
            SO_KEEPALIVE: 0
            (leaveContext)
        (leaveContext 328ms)
    Success.
    (leaveContext 343ms)
AuthenticatePw:
    DllDate: Aug 30 2017
    ChilkatVersion: 9.5.0.69
    UnlockPrefix: LOCALPSSH
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    VerboseLogging: 1
    SshVersion: SSH-1.99-OpenSSH_3.5p1
    login: [root]
    sshAuthenticatePw:
        requestUserAuthService:
            sendServiceRequest:
                svcName: ssh-userauth
                SentServiceReq: ssh-userauth
                (leaveContext 16ms)
            ssh-userauth service accepted.
            (leaveContext 16ms)
        sendUserAuthQuery:
            (leaveContext)
        AuthMethods: publickey,password,keyboard-interactive
        passwordAuth:
            Sent login/password
            Password authentication successful.
            (leaveContext 16ms)
        (leaveContext 32ms)
    Success.
    (leaveContext 47ms)
SendIgnore:
    DllDate: Aug 30 2017
    ChilkatVersion: 9.5.0.69
    UnlockPrefix: LOCALPSSH
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    VerboseLogging: 1
    SshVersion: SSH-1.99-OpenSSH_3.5p1
    Success.
    (leaveContext 15ms)
OpenSessionChannel:
    DllDate: Aug 30 2017
    ChilkatVersion: 9.5.0.69
    UnlockPrefix: LOCALPSSH
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    VerboseLogging: 1
    openSessionChannel:
        sshTransportOpenChannel:
            channelType: session
            clientChannel: 100
            clientInitialWindowSize: 2097152
            clientMaxPacketSize: 8192
            Sent open channel request
            Error reading channel response.
            (leaveContext 10312ms)
        (leaveContext 10312ms)
    retval: -1
    (leaveContext 10328ms)

is it possible to specify attachments in search criteria ? how to specify number of attachment in search criteria.

$
0
0

Hi, I want to specify From address and attachments related information to search emails accordingly. But, How to specify any attachment related information in search criteria using imap Chilkat.

How to specify ReceivedON, ReceivedBefore and ReceivedSince in search criteria like SENTON, SENTSINCE and SENTBEFORE.

$
0
0

Hi, is there any way to find emails by using RECEIVEDON, RECEIVEDSINCE and RECEIVEDBEFORE in searchcriteria. how to achieve yhis ?

Another empty mail with FetchSingleAsMimeAsync

$
0
0

Hi,

got another empty mail when using FetchSingleAsMimeAsync. I can't see any problems from the log:

2017-09-22, 12:21:14 ImapIterator.GetNumberOfObjects Konto 1 mimemails:::andere mailbox 13 .... 2017-09-22, 12:21:19 Subject: Fix wie nix: Über 200 schnelle Gerichte für jeden Tag 2017-09-22, 12:21:19 Date: 19.04.16 2017-09-22, 12:22:56 ImapController.getMail mimemails/andere mailboxChilkatLog: FetchSingleAsMime(255ms): DllDate: Sep 10 2017 ChilkatVersion: 9.5.0.70 UnlockPrefix: BEATRX.CB10118 Architecture: Little Endian; 32-bit Language: MAC OS X C/C++ VerboseLogging: 1 msgId: 14 bUid: 1 ImapCmdSent: aabb UID FETCH 14 RFC822.SIZE getCompleteResponse(86ms): ImapCmdResp: * 7 FETCH (UID 14 RFC822.SIZE 5734) ImapCmdResp: aabb OK UID FETCH completed --getCompleteResponse fetchSingleComplete(169ms): autoDownloadAttachments: 1 fetchComplete(169ms): autoDownloadAttachments: 1 fetchCompleteA(169ms): fetchCommand: aabc UID FETCH 14 (FLAGS INTERNALDATE BODY.PEEK[]) ImapCmdSent: aabc UID FETCH 14 (FLAGS INTERNALDATE BODY.PEEK[]) sendCommand: Elapsed time: 0 millisec getCompleteFetchResponse(169ms): ImapCmdResp: * 7 FETCH (UID 14 FLAGS (Seen $Junk) INTERNALDATE "19-Apr-2016 13:50:18 +0200" BODY[] {5734} flagsAndSizeData: * 7 FETCH (UID 14 FLAGS (Seen $Junk) INTERNALDATE "19-Apr-2016 13:50:18 +0200" BODY[] {5734} flags: Seen $Junk msgSize: 5734 ImapCmdResp: (5734 bytes) receiveMessageData: Elapsed time: 25 millisec Finished receiving MIME. ImapCmdResp: ) ImapCmdResp: aabc OK UID FETCH completed receiveRemainder: Elapsed time: 0 millisec --getCompleteFetchResponse --fetchCompleteA --fetchComplete --fetchSingleComplete sbCharset: "UTF-8"; Success. --FetchSingleAsMime --ChilkatLog

If you want to take a look this is again in the test account where I had sent you the credentials. Mailbox "mimemails:::andere mailbox". Mail has subject "Fix wie nix: Über 200 schnelle Gerichte für jeden Tag".

Regards

Beatrix Willius

Viewing all 1061 articles
Browse latest View live