GMail OAuth2 Scope for SMTP vs REST API

There’s confusion about the OAuth2 scope required to send email via GMAIL. There are two ways to programmatically send email using your GMail account: Connecting to smtp.gmail.com using the SMTP protocol (i.e. using Chilkat.MailMan) Calling the GMail REST API over HTTPS using Chilkat.Http or Chilkat.Rest.   The scope for IMAP, POP, and SMTP access is https://mail.google.com/ See https://developers.google.com/gmail/imap/xoauth2-protocol If your […]

How to Get Malaysia MyInvois Validation Link

Question: How is it possible to get the validation link for MyInvois? Answer: See the information here:   https://sdk.myinvois.hasil.gov.my/faq/#how-to-get-validation-link-and-generate-qr-code “The QR code (quick response code) can be generated from the validation link using any QR code generator. The validation link can be created using the format below: {envbaseurl}/uuid-of-document/share/longid The {envbaseurl} will need to be replaced with e-Invoice portal Base URL. The […]

Perl DynaLoader.pm: The specified module could not be found

Question: I get the following error when trying to install the Chilkat Perl 5.24 module in ActiveState Perl on Windows C:\chilkat-9.5.0-perl-5.20-x86_64-mingw32>perl Makefile.pl Checking if your kit is complete… Looks good Generating a dmake-style Makefile Writing Makefile for chilkat Writing MYMETA.yml and MYMETA.json C:\chilkat-9.5.0-perl-5.20-x86_64-mingw32>dmake cp lib/chilkat.dll blib\lib\chilkat.dll cp lib/chilkat.pm blib\lib\chilkat.pm C:\chilkat-9.5.0-perl-5.20-x86_64-mingw32>dmake install Appending installation info to C:\Perl64\lib/perllocal.pod C:\chilkat-9.5.0-perl-5.20-x86_64-mingw32>dmake test.pl `test.pl’ is […]

EuroCert Cloud Signing

This post is to record collected information about EuroCert cloud signing. It seems EuroCert provides a PKCS11 driver DLL for Windows: ECSPKCS11.dll. Question: Does this driver DLL communicate with the EuroCert servers to do the signing in the Cloud? (i.e. where the hash to be signed is sent via some REST API to a EuroCert server to be signed by […]

Chilkat v9.5.0.99 Release Notes

Previous Version: https://cknotes.com/chilkat-v9-5-0-98-release-notes/ Next Version: https://cknotes.com/chilkat-v10-0-0-release-notes/ Chilkat v9.5.0.99 Release Notes Ssh, SFtp, SshTunnel: Added the SetAllowedAlgorithms method. This allows an application to explicitly set the set of allowed connection algorithms (cipher, mac, key exchange, etc.). Note: It’s best to NOT explicitly set the algorithms. Chilkat already prioritizes algorithms according to security and other factors. By explicitly setting algorithms, you may […]

Google to Discontinue Authentication that Requires Users to Share their Google username and password

Beginning September 30, 2024: third-party apps that use only a password to access Google Accounts and Google Sync will no longer be supported See https://workspaceupdates.googleblog.com/2023/09/winding-down-google-sync-and-less-secure-apps-support.html Does this mean “App Passwords” will be discontinued? I don’t think so, but I’m not 100% sure. Google did not explicitly clarify. The reason I think App Passwords will still be a valid authentication mechanism, […]

RedTrust KSP with TLS 1.2 Client Certificate

The EVOLIUM REDTRUST CSP is not capable of signing a non-hash. In other words, it’s not possible to do TLS 1.2 with client certificates with the RedTrust KSP. This is a common problem in CSP/KSP implementations.  They assume that everything to be signed is a hash, such as SHA1, SHA256, SHA384, SHA512, and require the hash algorithm to be specified […]

InvalidAuthenticationToken message IDX14100 JWT is not well formed, there are no dots

Question: When I try to send: Set resp = http.PostJson2(“https://graph.microsoft.com/v1.0/me/sendMail”,”application/json”,json.Emit()) I am getting this response: { “error”: { “code”: “InvalidAuthenticationToken”, “message”: “IDX14100: JWT is not well formed, there are no dots (.). The token needs to be in JWS or JWE Compact Serialization Format. (JWS): ‘EncodedHeader.EndcodedPayload.EncodedSignature’. (JWE): ‘EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag’.”, “innerError”: { “date”: “2024-05-13T15:26:14”, “request-id”: “…”, “client-request-id”: “…” } } } Failed, […]

Malaysia E-Invoicing (MyInvois) User Questions Answered

(Questions paraphrased and published here with prior permission from the user.) Question 1 Our application is file-server based which can be accessed by multiple users over LAN. Quite likely, there will be multiple users and/or applications submitting their e-invoices. Can one certificate file be shared and used by multiple applications? What are the differences between the two certificate types and […]