Top Method Summary
Options Name Purpose
+ Consultingwerk.Framework.Collections.CharacterList ExtractCertificateChainToFolder (character, character) Extracts a particular certificate from the certificate chain
+ CHARACTER ExtractRootCertificateToFile (character, CharacterList, character) Extracts a particular certificate from a file containing the root certificates.
# CHARACTER GetIssuerFromList (CharacterList) Returns the 'last' certificate issuer
# CHARACTER SanitizeCertificateName (character) Prettifies a certificate name. REplaces all spaces with a single -. Replaces . with a -. Replaces * with 'star'

Top Constructor Summary
Options Name Purpose
- SslCertificateHelper () Default Constructor


Method Detail
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList ExtractCertificateChainToFolder (character, character)

Purpose: Extracts a particular certificate from the certificate chain
Notes:

Parameters:
pcCertChainFileName CHARACTER
The file name containing the certificate chain for a host
pcOutputDirectory CHARACTER
The directory to write the certificates
Returns Consultingwerk.Framework.Collections.CharacterList
A list of the (full) certificate filenames written
Top

PUBLIC CHARACTER ExtractRootCertificateToFile (character, CharacterList, character)

Purpose: Extracts a particular certificate from a file containing the root certificates.
Notes: This file can be downloaded from https://curl.se/docs/caextract.html

Parameters:
pcCaCertFilename CHARACTER
The file name containing the root CA certificates
poIssuerList Consultingwerk.Framework.Collections.CharacterList
A list of issuers
pcOutputDirectory CHARACTER
The directory to write the certificates
Returns CHARACTER
The name of the file the certificate was written to
Top

PROTECTED CHARACTER GetIssuerFromList (CharacterList)

Purpose: Returns the 'last' certificate issuer
Notes: If an issuer and then previous issuer are the same, then we have a self-signed certificate.
Some versions of openssl/sslc filter this out, but the version used in OpenEdge 12.8.3 does not (openssl 3.1.1)

Parameters:
poIssuerList Consultingwerk.Framework.Collections.CharacterList
A list of issuers
Returns CHARACTER
The issuer name
Top

PROTECTED CHARACTER SanitizeCertificateName (character)

Purpose: Prettifies a certificate name. REplaces all spaces with a single -. Replaces . with a -. Replaces * with 'star'
Notes:

Parameters:
pcCertificateName CHARACTER
A certificate/issuer name
Returns CHARACTER
The sanitized name


Constructor Detail
Top

PRIVATE SslCertificateHelper ()

Purpose: Default Constructor
Notes: Private constructor prevents instantiations



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:23:19