Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Chilkat

Pages: 1 2 3 [4] 5 6 7
.NET / Re: Missing Chilkat.Email.OaepMgfHash property in ?
« on: January 12, 2018, 08:51:18 AM »
Actually, I just checked my internal release notes for v9.5.0.71, and OaepMgfHash was not actually in .70.  The online reference documentation is mistaken.  (I'll update it..)
You would need .71.

.NET / Re: Missing Chilkat.Email.OaepMgfHash property in ?
« on: January 12, 2018, 07:36:00 AM »
The property should exist, unless you're using an older version of the library.  In any case, there are OAEP fixes for certain situations that are in the next version of Chilkat to be released (v9.5.0.71) very soon.  I can send you a build if you tell me which .NET Framework and Visual Studio version you use..

Digital Signatures / Re: S/MIME Signature without Certificate?
« on: January 10, 2018, 08:16:24 AM »
This is a great question.

First, there should be no fear of providing one's digital certificate to one's partner.  The digital certificate contains the public key, and never contains the private key.  Other formats, such as .pfx (.p12), Java KeyStores, etc. are containers that contain both unencrypted certificates and the encrypted/protected private keys.  One would never give a .pfx w/ password to another party, unless of course it's a test cert + private key.

For signature verification, the certificate's public key is required.  (The private key was used in signing the message, and the public key is used to verify.)   If the partner does not provide the certificate in the S/MIME signature (and the certificate in turn contains the public key), then he must provide an unambiguous means for you to locate his certificate from your own certificate stores.  In other words, your partner would've needed to previously provide you with his certificate so that you can "install" it on your system (or just keep it as a file where you can locate it).  Embedding the certificate makes it convenient.  Internal to the S/MIME PKCS7 signature, there is always something called a "SignerInfo" construct, and this contains the signing certificate's IssuerName + serial number, and from that information the signer's certificate can be located on your local system to retrieve the public key for verification.

On a Windows system, the Chilkat API will automatically try to find the matching certificate (by issuer name + serial number) in the Windows registry-based certificate stores.  There are also methods where you can explicitly provide the cert to be used for signature verification.

In summary, your partner does not need to include his certificate in the signature, but he SHOULD.  If he does not, then it is required that beforehand, he should've provided you with his certificate so that you can install it on your system.  (But what a pain-in-the-arse that is..  Now there's something to remember every time you run your software on another system -- can't forget to install each of your customer's certs -- for those customers, who for no apparent/good reason, decide it's prudent to not simply create S/MIME in the typical fashion.)

Digital Signatures / S/MIME Signature without Certificate?
« on: January 10, 2018, 07:57:42 AM »
I have an S/MIME question.

One of our communication partners incorrectly builds the email.
It does not integrate its certificate into the e-mail, but only that of the certificate manufacturer.

If I check the signature with mime.verify in MFC, of course, I get the message that it was signed incorrectly.

The communication partner says he does not have to pass his certificate in S/MIME, we should record it ourselves.
But I cannot pass a certificate to the Verify function either.

All other partners integrate your certificate correctly in the S/MIME.

So I'm pretty sure that the communication partner makes a mistake. Do you agree with me?
Or do I understand something wrong?

Thank you in advance and many greetings

Here is an example:

Classic ASP:
Delphi ActiveX:
Delphi DLL:
.NET Core C#:
Visual FoxPro:
Mono C#:
PHP ActiveX:
PHP Extension:
SQL Server:
Unicode C:
Unicode C++:
Visual Basic 6.0:
Xojo Plugin:

How can I send a simple HTTP  x-www-form-urlencoded POST with a JSON query parameter?

« on: January 04, 2018, 01:47:46 PM »
The POST method is designed to send input data to the server.  What you have is a URL where the query parameters are encoded within the URL.  Given that there is no data other than what's embedded within the URL, one would typically send a GET -- because there's no body part of the HTTP request.  In other words, the Content-Length is 0.

The way to send the equivalent, but as a POST, is to send a request where the query params are placed in the body of the request.  The Content-Type of the request is "x-www-form-urlencoded".  You would use the Http.PostUrlEncoded method.

The url passed to PostUrlEncoded would include the path, but not the query params.
For example, in pseudo-code:

Code: [Select]
HttpResponse response = http.PostUrlEncoded("", req);

The req object is an HttpRequest object that was loaded with the query params.  For example, in pseudo-code:
Code: [Select]
HttpRequest req = new HttpRequest();

« on: January 04, 2018, 01:38:26 PM »
I want to send a simple HTTP POST and I am a little bit lost in all your functions.
For example, I want to send:

How can I do that ?  I already tried your JSON, REST functions, etc. with not a lot of success.
Do you have any example in C language,

.NET / Chilkat .NET Error: HRESULT: 0x800736B1, MethodInvocationException
« on: January 03, 2018, 05:23:46 AM »
The following error can occur if the vcredist_x64.exe (the VC redist for a given version of Visual Studio) is not up to date.  The solution is to download and install the latest from Microsoft.  See

Here's the error from Microsoft:
Code: [Select]
Ausnahme beim Aufrufen von "LoadFile" mit 1 Argument(en): 
"Die Datei oder Assembly "ChilkatDotNet2, Version=, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd"
oder eine Abhängigkeit davon wurde nicht gefunden. Diese Anwendung konnte nicht gestartet werden, da die Side-by-Side-Konfiguration ungültig ist.
Weitere Informationen finden Sie im Anwendungsereignisprotokoll. Weitere Detailskönnen auch mit dem Befehlszeilentool sxstrace.exe
angezeigt werden. (Ausnahmevon HRESULT: 0x800736B1)"

Bei C:\Admin\Skripte\xyz\xyz.ps1:81 Zeichen:32

+ [Reflection.Assembly]::LoadFile <<<< ("C:\Admin\Skripte\xyz\chilkatdotnet2-9.5.0-x64\ChilkatDotNet2.dll")
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

.NET / Re: Chilkat dotnet4 is unable to unrar a .rar file.
« on: January 03, 2018, 05:13:21 AM »
The Chilkat.Rar and RarEntry classes are legacy and deprecated, and have remained frozen for many years.  In fact, they only exist in the builds of the .NET assembly for the older .NET Frameworks (2.0, 4.0).   They are not publicly documented.  The classes are only capable of unrar, and cannot create RAR archives.

At a certain point in the future, these classes will be removed from the builds where they remain.  When this happens we'll likely move them to a separate assembly, available upon request, and to remain frozen until the end of time.  :)

Chilkat has solved all problems relating to OAEP.  If you need a pre-release, please send email to    (Pre-releases are not available in all programming languages due to the effort required to produce the build, and also given that the next version of Chilkat, v9.5.0.71, is due to be released in a few weeks..)

This is because you are using the newer clang compiler option in C++ Builder.  Chilkat will provide a build for it starting in version, to be released at the beginning of January 2018.

Here's the new build that includes a Win32 (32-bit) clang build:

The static libs in the download are:
Code: [Select]
lib-win32/ChilkatCb10.lib    (built using the classic C++ Builder compiler)

Note:  The pre-release link will likely no longer be valid after v9.5.0.71 is released.  At that point in time the official download link will be present on

When I compile/link using Chilkat with C++ Builder, I get the following link errors:
Code: [Select]
    [ilink32 Error] Error: Unresolved external '__InitExceptBlockLDTC' referenced from c:...\MyProject\CHILKATXE4.LIB|CkCrypt2

    [ilink32 Error] Error: Unresolved external '_CatchCleanup()' referenced from c:...\MyProject\CHILKATXE4.LIB|ChilkatCritSec

    [ilink32 Error] Error: Unresolved external 'CkCrypt2::{1173}...'' referenced from c:...\MyProject\WIN32\DEBUG\MyProj.OBJ

C / C++ / Re: Decrypt information
« on: December 20, 2017, 08:13:18 AM »

Also.. briefly review the methods and properties in the reference documentation of the EMail object.  It may answer many questions.

Also.. when communicating a problem, please try to provide useful information, such as your programming language.   This helps in pointing to an online example..

Also.. the forum is not a substitute for paid support.  It is meant for users to help each other.  Don't expect timely answers from Chilkat on the forum.  Timely answers are provided for customers with non-expired support via email.

For errors such as this, one should Google/Bing/DuckDuckGo the error message, minus the specifies such as your directory path. 

For example, paste "java.lang.UnsatisfiedLinkError already loaded in another classloader" into the Google search bar.

In this case, the 1st result may offer a solution:

Pages: 1 2 3 [4] 5 6 7