SecureBlackbox 2020 iOS Edition

Questions / Feedback?

getSampleCert (method)

Generates a sample certificate for the specified purpose.

Syntax

- (void)getSampleCert:(NSString*)purpose :(NSString*)subject;
public func getSampleCert(_ purpose: String, _ subject: String) throws -> Void

Remarks

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. "*.domain.com")

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