This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
CryptoCertificateManager Methods
Daniel Linsley edited this page Aug 24, 2018
·
4 revisions
Methods to fetch or parse certificates. No need to instantiate the CryptoCertificateManager. Its static methods serve as a constructor for CryptoCertificate objects.
Returns array of certificates representing the certificate chain presented by the https server.
Typically the last certificate in the chain is the certificate for the https server.
CryptoCertificate[]
CryptoCertificateManager.getHttpsCertificate(String urlString)
Name | Type | Description |
---|---|---|
urlString | String | HTTPS url to get Certificate Chain from |
Returns a CryptoCertificate object from a PEM encoded string
This method attempts to repair the PEM string in case it is missing or has unexpected new line characters.
CryptoCertificate
CryptoCertificateManager.parseCertificatePem(String pemCertString)
Name | Type | Description |
---|---|---|
pemCertString | String | PEM Encoded certificate string |