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
46
.NET / Re: Missing Chilkat.Email.OaepMgfHash property in 9.5.0.70 ?
« 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.

47
.NET / Re: Missing Chilkat.Email.OaepMgfHash property in 9.5.0.70 ?
« 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..

48
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.)

49
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

50
Here is an example:


Android: http://www.example-code.com/android/http_post_x-www-form-urlencoded.asp
Classic ASP: http://www.example-code.com/asp/http_post_x-www-form-urlencoded.asp
C: http://www.example-code.com/C/http_post_x-www-form-urlencoded.asp
C++: http://www.example-code.com/cpp/http_post_x-www-form-urlencoded.asp
C#: http://www.example-code.com/csharp/http_post_x-www-form-urlencoded.asp
C# UWP/WinRT: http://www.example-code.com/csharp_winrt/http_post_x-www-form-urlencoded.asp
DataFlex: http://www.example-code.com/dataflex/http_post_x-www-form-urlencoded.asp
Delphi ActiveX: http://www.example-code.com/delphiAx/http_post_x-www-form-urlencoded.asp
Delphi DLL: http://www.example-code.com/delphiDll/http_post_x-www-form-urlencoded.asp
.NET Core C#: http://www.example-code.com/dotnet-core/http_post_x-www-form-urlencoded.asp
Excel: http://www.example-code.com/excel/http_post_x-www-form-urlencoded.asp
Visual FoxPro: http://www.example-code.com/foxpro/http_post_x-www-form-urlencoded.asp
Java: http://www.example-code.com/java/http_post_x-www-form-urlencoded.asp
Lianja: http://www.example-code.com/lianja/http_post_x-www-form-urlencoded.asp
MFC: http://www.example-code.com/mfc/http_post_x-www-form-urlencoded.asp
Mono C#: http://www.example-code.com/mono/http_post_x-www-form-urlencoded.asp
Node.js: http://www.example-code.com/nodejs/http_post_x-www-form-urlencoded.asp
Objective-C: http://www.example-code.com/objc/http_post_x-www-form-urlencoded.asp
Perl: http://www.example-code.com/perl/http_post_x-www-form-urlencoded.asp
PHP ActiveX: http://www.example-code.com/phpAx/http_post_x-www-form-urlencoded.asp
PHP Extension: http://www.example-code.com/phpExt/http_post_x-www-form-urlencoded.asp
PowerBuilder: http://www.example-code.com/powerbuilder/http_post_x-www-form-urlencoded.asp
PowerShell: http://www.example-code.com/powershell/http_post_x-www-form-urlencoded.asp
PureBasic: http://www.example-code.com/purebasic/http_post_x-www-form-urlencoded.asp
Python: http://www.example-code.com/python/http_post_x-www-form-urlencoded.asp
Ruby: http://www.example-code.com/ruby/http_post_x-www-form-urlencoded.asp
SQL Server: http://www.example-code.com/sql/http_post_x-www-form-urlencoded.asp
Swift: http://www.example-code.com/swift/http_post_x-www-form-urlencoded.asp
Tcl: http://www.example-code.com/tcl/http_post_x-www-form-urlencoded.asp
Unicode C: http://www.example-code.com/unicodeC/http_post_x-www-form-urlencoded.asp
Unicode C++: http://www.example-code.com/unicodeCpp/http_post_x-www-form-urlencoded.asp
Visual Basic 6.0: http://www.example-code.com/vb6/http_post_x-www-form-urlencoded.asp
VB.NET: http://www.example-code.com/vbnet/http_post_x-www-form-urlencoded.asp
VB.NET UWP/WinRT: http://www.example-code.com/vbnet_winrt/http_post_x-www-form-urlencoded.asp
VBScript: http://www.example-code.com/vbscript/http_post_x-www-form-urlencoded.asp
Xojo Plugin: http://www.example-code.com/xojo/http_post_x-www-form-urlencoded.asp



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

52
REST / HTTP / HTTPS / Re: POST to URL?
« 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("https://testserver.com:443/rest/site/raffletest/pinGeneratorService/reqPin", 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();
req.AddParam("requestId","123");
req.AddParam("terminalId","term1");
req.AddParam("amount","2000");



53
REST / HTTP / HTTPS / POST to URL?
« 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:
 
https://testserver.com:443/rest/site/raffletest/pinGeneratorService/reqPin?requestId=123&terminalId=%22term1%22&amount=2000

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,

54
.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 http://cknotes.com/chilkat-net-assemblies-matching-visual-studio-versions-to-net-framework-versions-to-vc-runtime-versions/

Here's the error from Microsoft:
Code: [Select]
Ausnahme beim Aufrufen von "LoadFile" mit 1 Argument(en): 
"Die Datei oder Assembly "ChilkatDotNet2, Version=9.5.0.71, 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


55
.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.  :)

56
Chilkat has solved all problems relating to OAEP.  If you need a pre-release, please send email to support@chilkatsoft.com.    (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..)



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

Here's the new build that includes a Win32 (32-bit) clang build: https://chilkatdownload.com/prerelease/chilkat-9.5.0-bcc-10-318.zip

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

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 https://www.chilkatsoft.com/downloads-cpp-builder.asp



58
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

59
C / C++ / Re: Decrypt information
« on: December 20, 2017, 08:13:18 AM »
See https://www.example-code.com/csharp/email_load_unwrap_security.asp

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.


60
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:  https://stackoverflow.com/questions/36936948/java-lang-unsatisfiedlinkerror-native-library-xxx-so-already-loaded-in-another

Pages: 1 2 3 [4] 5 6 7