4D Blog

Home Product HTTPS Requests Now Support Windows Certificate Store

HTTPS Requests Now Support Windows Certificate Store

October 15, 2025

Product

Starting with 4D 21, your HTTPS requests can now use a certificate stored in the Windows Certificate Store instead of one saved on disk. This is particularly useful when the client-side of HTTPS requests needs to use local certificates.


Using certificates from the Windows Certificate Store in HTTPS requests has been a popular feature request from 4D Developers on the 4D Forum. Once again, we’ve listened, and 4D 21 delivers.

Setting the Certificate

In HTTP requests, defining which certificate to use from the Windows Certificate Store is straightforward. Just set its name in the new storeCertificateName attribute of the options object passed to the new() function. Here’s a code example:

var $options:={storeCertificateName: "myCertificateName"}
var $request:=4D.HTTPRequest.new($url; $options)

Of course, you can also set the certificate name for an HTTP agent, as shown in the following example:

var $options:={storeCertificateName: "myCertificateName"}
var $agent:=4D.HTTPAgent.new($options)
var $request:=4D.HTTPRequest.new($url; {agent: $agent})

Installing a Certificate in Windows

Registering a certificate in the Windows Certificate Store is quite simple. The easiest way is to use a PKCS#12 certificate, which contains both a private key and an identity certificate. Many tools can generate these certificates.

In Windows Explorer, just double-click the PKCS#12 certificate file and follow the wizard steps, as shown in the video below.

⚠️ One step is particularly important: in the third step of the wizard, make sure to check the “Mark this key as exportable” checkbox. If you skip this, 4D won’t be able to use the certificate.

 

That’s it! The certificate is safely stored and ready to be used in 4D!

This new feature is currently only available on Windows. We’re currently evaluating support for macOS Keychain.

We hope this new feature meets your expectations. As always, feel free to share your feedback on the 4D Forum.

Happy coding!

Discuss

Tags 21, HTTP

Latest related posts

  • January 22, 2026

    Transform Static Documents into Actionable Knowledge with AIKit

  • January 22, 2026

    Deploy Fluent UI effortlessly in your 4D applications

  • January 21, 2026

    Searching Across Host Projects and Components in 4D

Avatar
Damien Fuzeau
- Product Owner - Damien Fuzeau joined the 4D Product team in February 2019. As a Product Owner, he is responsible for writing user stories and translating them into functional specifications. His role also involves ensuring that the delivered feature implementations meet customer needs. Damien holds a degree in Software Engineering from the University of Nantes. He spent over 23 years at his previous company, first as a developer (discovering 4D in 1997), and later as Engineering Manager and Software Architect. The company was an OEM partner of 4D and deployed enterprise software based on 4D for thousands of users across hundreds of servers. Damien is therefore well-versed in 4D development and deployment in multilingual environments.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 21 R2 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor

Tags

4D-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 21 R2 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor
Subscribe to 4D Newsletter

© 2026 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy