Recent Posts

Pages: 1 2 [3] 4 5 ... 10
Encryption / Re: PFX - Extract RSA private key / certificate
« Last post by echodreamz on May 24, 2018, 04:07:30 PM »
Code: [Select]
            Chilkat.PrivateKey privKey = null;
            Chilkat.Cert cert = pfx.GetCert(0);

            privKey = cert.ExportPrivateKey();



I noticed that SaveRsaPemFile and GetRsaPem have different outputs. The file has BEGIN PRIVATE KEY, while the GetRsaPem has BEGIN RSA PRIVATE KEY
Encryption / PFX - Extract RSA private key / certificate
« Last post by echodreamz on May 24, 2018, 03:32:34 PM »
Is it possible with the PFX portion of the .net library to extract the RSA private key as well as the website specific certificate? Currently we have to use 3 OpenSSL commands...

Extract the private key
Code: [Select]
openssl pkcs12 -in filename.pfx -nocerts -nodes -out key.pem
Convert to the older RSA format
Code: [Select]
openssl pkcs8 -in key.pem -out rsakey.pem
Extract the certificate
Code: [Select]
openssl pkcs12 -in filename.pfx -nokeys -out cert.pem
Would be great if we could do this directly with code instead of relying on starting processes.
Thanks.   Yes, I see the "C" headers for the Unicode (wchar_t) functions have this error.   Given that was just released in the last 2 days, I'll re-generate these headers and will re-publish..

I'll post here when finished.
C / C++ / Chilkat C/C++ Libs for VC++ 9.0 / win32 include files compilation error
« Last post by dragon on May 23, 2018, 09:17:59 PM »
Hi Chilkat Support,

Just tested the latest version ie. Chilkat C/C++ Libs for VC++ 9.0 / win32 (v9.5.0.73).
During compilation, got a whole ist of errors related to ????????w.h files :

\include\c_ckasnw.h(16) : error C2733:
second C linkage of overloaded function 'CkAsnW_getContentStr' not allowed

\include\c_ckasnw.h(16) : see declaration of 'CkAsnW_getContentStr'

\include\c_ckasnw.h(19) : error C2733:
second C linkage of overloaded function 'CkAsnW_getDebugLogFilePath' not allowed

\include\c_ckasnw.h(19) : see declaration of 'CkAsnW_getDebugLogFilePath'


Simply overwrite the include folder with the version 72 include folder, the errors are gone !

Further analyse, eg. c_ckasnw.h, compare version 72 & version 73,

CK_VISIBLE_PUBLIC const wchar_t *CkAsnW_contentStr(HCkAsnW cHandle);  // version 72
CK_VISIBLE_PUBLIC const wchar_t *CkAsnW_getContentStr(HCkAsnW cHandle); // version 73

EXTRA generated "get" is causing the error !

Hope that you can verify that the above-mentioned is the cause.

Fya, if it is right.

Cheers !

Best regards

Encryption / Generate ETAG from streem or ftp
« Last post by dev guy on May 23, 2018, 04:50:06 PM »
I am rewriting an application from vb6 to Python3 and I would like to use the ckRest module in place of ckHttp. Is it possible to generate the ETag/fingerprint from a stream or does the entire file need to be on disk?

Thanks :)
Email Protocols / Re: Gmail only shows and downloads 2000 mails
« Last post by bwill on May 22, 2018, 12:29:19 PM »
Thanks, this was what I was looking for.


Beatrix Willius
Android / Android Java App crashes on loading chilkat library
« Last post by Rudiment on May 21, 2018, 10:47:53 AM »
Hello, I am using the latest Android Java Chilkat version 9.05.72.
Everything is placed correctly as far as I can see


-> java, com, chilkatsoft, *.java (108 files)

-> jniLibs, arm64-v8a, armeabi-v7a, etc .. all having the ""

My Code works as long as I don't try to make my call to load the library.


Code: [Select]
package ${YYAndroidPackageName};
    import ${YYAndroidPackageName}.R;
    import com.yoyogames.runner.RunnerJNILib;
    import com.chilkatsoft.*;
    public class getdata extends Activity {
        /** Called when the activity is first created. */
       public String testing()
      return "working - we are in testing"; //works if not lib loaded
      public String chilversion()
          CkCrypt2 crypt = new CkCrypt2(); //never reaches this function because pre-crash
      String cv;
      cv = crypt.version();
      return cv; //should return version as shown on example site
        static {
            System.loadLibrary("chilkat"); //as soon as implemented makes app scrash om startup


same Problem by using latest Android Studio with very Little basic code, compiling for minimum Target Api 16 (regardless of above yoyo runner).
Pages: 1 2 [3] 4 5 ... 10