MS CNG NCryptSignHash returns 0x80090020

We’ve seen this error when trying to sign using a smart card: msCngSignWithCert Acquired CNG private key. dwKeySpec: 0xffffffff key is CERT_NCRYPT_KEY_SPEC setSmartCardPin: setting smart card pin… –setSmartCardPin Using PKCS1 padding. msCngSign.NCryptSignHash failed. failed to sign. secStatus: 0x80090020 –msCngSignWithCert The 0x80090020 error is a generic “NTE_FAILED: An internal error occurred”. See https://docs.microsoft.com/en-us/windows/desktop/com/com-error-codes-4 To clarify: Chilkat calls the Microsoft CNG (Cryptographic […]

Android Socket Permission Denied Error

If the LastErrorText contains a line such as this: socketError: Permission denied It means you need to add permissions for Internet communications in your manifest. It should be placed outside of the application tag, such as: <manifest> <application> . . . </application> <uses-permission android:name=”android.permission.INTERNET” /> </manifest>

IOS Error: Broken pipe … Failed to send ClientHello

The following error can be caused by a firewall blocking the iPAD/iPhone wifi connection: … connect successful (1) clientHelloMajorMinorVersion: 3.1 buildClientHello: majorVersion: 3 minorVersion: 1 numRandomBytes: 32 sessionIdSize: 0 numCipherSuites: 10 numCompressionMethods: 1 socketErrno: 32 socketError: Broken pipe Error sending on socket send_size: 58 Failed to send TLS message. Failed to send ClientHello Client handshake failed. Failed to connect to […]

SSH/SFTP RemoveFile: “Permission Denied”

If the SFTP server responds to a request to delete a file with the error “Permission Denied”, it means the SSH/SFTP user account does not have permission to delete the file. Here is a sample LastErrorText that shows the path of the remote file to be deleted, and the “Permission Denied” response from the server. ChilkatLog: RemoveFile: DllDate: Jan 19 […]

SFTP Open: The meaning of “No Such File”

When an SSH/SFTP server responds to a file open request with the error message “No Such File”, it means that it could not find the file (i.e. there was no such file). This is a snippet from the LastErrorText property: … OpenRemoteFile: filename: something.dat access: readOnly createDisposition: openExisting v3Flags: 0x1 Sent FXP_OPEN StatusResponse: Request: FXP_OPEN StatusCode: 2 StatusMessage: No such […]

SOLVED: 425 Unable to build data connection: Operation not permitted

This error message is specific to the ProFTPd server.  A Chilkat customer found this error within the LastErrorText after trying to upload or download a file, or retrieve a directory listing: 425 Unable to build data connection: Operation not permitted The latest ProFTPd server has a configuration setting that by default requires SSL/TLS sessions to be re-used, and this breaks […]

SFTP Permission Denied w/ OpenFile Method

Question: We are trying to upload a file to SFTP using private key. We are able to connect and retrieve folder listing. But when we try to upload to one of the folder on the SFTP we get the “Permission denied” error message. The message is as below. ChilkatLog: OpenFile: DllDate: Feb 15 2010 UnlockPrefix: **** Username: joe Component: .NET […]

WSAECONNREFUSED No connection could be made because the target machine actively refused it.

One possible cause of this socket connect error is when an Anti-Virus program blocks the connection. This can happen if the AV program is blocking the outbound port. If some programs can connect to a given remote host:port, but your application cannot, then check your Anti-Virus program to see if exceptions were made for specific programs, but not for your […]

VC++ Link problem: fatal error C1047, “Chilkat*.lib’ was created with an older compiler than other objects; rebuild old objects and libraries”

Regarding the following VC++ link problem: “fatal error C1047: The object or library file ‘c:\Chilkat\libs\x64\ChilkatRel_x64.lib’ was created with an older compiler than other objects; rebuild old objects and libraries” This can be resolved by building without the /LTCG flag turned on. Unfortunately, it is not possible to use the /LTCG flag if you are using the Chilkat libraries. Compiling and […]