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 […]

SQL sp_OAMethod String Length Return Value Limitations

The sp_OAMethod function is used to call ActiveX methods in SQL stored procedures.  If the ActiveX method returns a string, there is a limit imposed by sp_OAMethod on the size of the string that can be returned.  (Perhaps it is 4000 chars?) This blog post describes a way to workaround this limitation. An example of a method call that is […]

Chilkat for Amazon Marketplace SP-API

Chilkat already “supports” the Amazon Marketplace SP-API because it’s just a matter of implementing the API calls using the existing Chilkat general-purpose HTTP/REST functionality. Given that Chilkat is not an Amazon seller, we don’t have direct access to be able to write *and test* examples. We did it for Amazon’s older MWS API, but with customer-provided access to the sandbox. […]

smtp.office365.com – Failed to get initial SMTP Response

If something on the client-side is blocking communications, such as a hardware or software firewall, or anti-virus, then it may be that a TLS connection is established, but then trying to read the 1st message from the server gets blocked.  When this happens, the contents of the LastErrorText look like this.   (The LastErrorText for a successful connection is shown below.) […]

Auto-Reconnect Feature of Chilkat.Rest Explained

This post is to explain the auto-reconnect argument in the Chilkat.Rest.Connect method.  For example, the Rest.Connect method in C#. The Chilkat REST class is designed so that your application initially connects to a particular web server (at a particular port, with or without TLS), and then one or more requests can be sent. If the auto-connect argument was set to […]

Convert java.security.PrivateKey to Chilkat PrivateKey, java.security.cert.Certificate to Chilkat Certificate

Question: We are facing some problems about private key and x509 cert. In our case, we already have instance of java.security.PrivateKey and java.security.cert.Certificate How can we convert these instance to CkPrivateKey and CkCert for using in CkXmlDSignGen? Private Key Answer: Google java.security.PrivateKey Go to reference doc page: https://docs.oracle.com/javase/8/docs/api/java/security/PrivateKey.html Find way to get the private key in some format.  (Chilkat can […]

Error: “No Content-Length header AND not a chunked response. Assuming no response body.”

The following error was received from a call to Rest.FullRequestSb: ChilkatLog: FullRequestSb: DllDate: Mar 23 2022 ChilkatVersion: Architecture: Little Endian; 64-bit VerboseLogging: 0 uriPath: … fullRequestBody: autoReconnect: 1 Sending request with body… sendReqBody: … –sendReqBody Sent request. fullRequestGetResponse: Reading response header… responseStatusCode: 200 Reading response body … readResponseBody: No Content-Length header AND not a chunked response. Assuming no response […]