Tech Tip: openSSL: Generating X509 Certificates and Obtaining Expiry Dates
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: October 20, 2025
OpenSSL is a software library widely used for managing SSL certificates. 4D developers might use this library as external software launched by the command LAUNCH EXTERNAL PROCESS.
The following pair of OpenSSL commands can let users generate a x509 certificate and obtain its expiry date. Make sure to have OpenSSL installed and run the following commands in the CLI.
The following pair of OpenSSL commands can let users generate a x509 certificate and obtain its expiry date. Make sure to have OpenSSL installed and run the following commands in the CLI.
openssl req -new -x509 -days 30 -key key.pem -out ca.crt openssl x509 -enddate -noout -in ca.crt |