Deprecation of Basic authentication in Exchange Online

Microsoft is deprecating Basic authentication in Exchange Online, as announced here:  https://docs.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online “This decision requires customers to move from apps that use basic authentication to apps that use Modern authentication. Modern authentication (OAuth 2.0 token-based authorization) has many benefits and improvements that help mitigate the issues in basic authentication. For example, OAuth access tokens have a limited usable lifetime, and […]

SSH/SFTP Public Key Authentication Fails w/ DSA Key and OpenSSH Server

If SSH public key authentication fails when using a DSA private key, it may be that the SSH server disallows using DSA private keys. If the contents of the Chilkat LastErrorText for methods AuthenticatePk or AuthenticatePwPk contains the following, then this could be the cause of the error: … Sent public-key request. AuthList: publickey,password Proceeding with publickey authentication… dssSigLen: 40 […]

Error: OLE error code 0x80020006 Unknown name

If your code using the ActiveX generates the error “Error: OLE error code 0x80020006  Unknown name”, it means no method or property with the given name exists.  Check the Chilkat online reference documentation for the ActiveX to see if the method or property actually exists. Here’s a sample error (in Italian) using FoxPro:    

Error: This operation is not supported with BTT enabled

I haven’t seen this error before.  A Chilkat user reported it, and then quickly found the answer: When trying to Create the Chilkat_9_5_0.http object with this example: https://www.example-code.com/vbscript/curl_username_password.asp , there’s a message that the ActiveX Component can’t create it, because “System:  This operation is not supported with BTT enabled.” The cause of the problem had to do with a 32-bit/64-bit […]

New Security Measures taken by Google concerning “Loopback IP Adresses” or “OAuth out-of-band (oob)”

Question:  I would like to know if Chilkat is affected by the new security measures taken by Google concerning “Loopback IP Adresses” or “OAuth out-of-band (oob)” https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html https://developers.google.com/identity/protocols/oauth2/native-app#redirect-uri_loopback Answer:   Chilkat does not use “oob”, so it’s not an issue. The loopback address, such as “http://localhost:port/”, remains valid if you define your app in the Google Developers Console as a “Desktop […]

Classic ASP to Read JSON Request Body and Write JSON Response

Here’s a Classic ASP example using Chilkat to read an incoming JSON request body (such as from a POST), load it into a Chilkat JsonObject, and then write the JSON to an application/json response: <% If Request.TotalBytes > 0 Then ‘ Read the JSON request body into a Chilkat BinData object. set bd = Server.CreateObject(“Chilkat_9_5_0.BinData”) bd.AppendBinary(Request.BinaryRead(Request.TotalBytes)) ‘ Load a Chilkat […]

XML Signature Id attribute

In Chilkat v9.5.0.90, the Id attribute is automatically generated and added to the “Signature” tag when an XML digital signature is created.  This results in a Signature that begins like this: <Signature xmlns=”http://www.w3.org/2000/09/xmldsig#” Id=”signature-1502-9002-7096-7873″> Why did Chilkat do this?  It is because if you or somebody else wishes to subsequently add an Encapsulated Timestamp to the signature, then the Id […]

How to Know a PDF is Corrupt

Open a PDF in Adobe Acrobat DC.  Then without doing anything else, close the PDF. Does Acrobat ask to save changes even though you made no changes? If so, then it means that Acrobat auto-fixed a corrupt PDF.

Failed to read beginning of SSL/TLS record – can be caused by External Firewall

If the problem is with Office365, such as with SendEmail to smtp.office365.com, port 587, then updating to Chilkat v9.5.0.93 or later will solve the problem. For example, if you see the following, then update to v9.5.0.93 or later. … ensureSmtpSession: ensureSmtpConnection: smtpParams: SmtpHost: smtp.office365.com SmtpPort: 587 SmtpUsername: … SmtpSsl: 0 StartTLS: 1 –smtpParams smtpConnect: smtpHostname: smtp.office365.com smtpPort: 587 connectionIsReady: SMTP […]

AutoFix POP3 and SMTP Port / TLS Settings

What is the MailMan.AutoFix property? Protocols such as POP3, SMTP, FTP, IMAP, etc. that sit atop SSL/TLS in the protocol stack, can establish TLS connections in one of two ways:  explicit or implicit. Implicit SSL/TLS means that immediately after the TCP connection is established, it is implicitly known that client and server will begin with the TLS handshake. Explicit SSL/TLS […]