SecureBlackbox 2020 Delphi Edition

Questions / Feedback?

GetSampleCert Method

Generates a sample certificate for the specified purpose.

procedure GetSampleCert(Purpose: String; Subject: String);


This method generates a sample self-signed certificate for the specified purpose. Use it as a quick method to get a working certificate to evaluate or test a piece of functionality that relies on certificates. The certificate will use pre-defined settings for most of its fields; use Generate method to generate bespoke real-world certificates. Purpose specifies the intended use of certificate:

  • "generic": a generic certificate with no specific purpose
  • "tls": a TLS server certificate
  • "tls-client": a client-side TLS certificate
  • "email": a secure e-mail (S/MIME) certificate

Subject specifies the common name to include in the certificate (e.g. "*")

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Delphi Edition - Version 20.0 [Build 8165]