Closed abunashir closed 7 years ago
@abunashir this is awesome. Just a minor detail, the current assumption is that there will be only 3 certificates. However, I have seen a Digicert PEM that has 4 certificates too.
In any case, the certificate
is the first one, the root
is the last one, and the middle ones are the intermediate
.
Thanks!
@ronaldtse : I just added another commit to fix this and also another key to return the full response as it is.
This commit adds an interface to retrieve the certificate contents as hash. Underneath, it downloads the certificate as
pem
and then it extract all of the subsidiary certificate and then build a hash withcertificate
,intermediate_certificate
&root_certificate
Solves #101, cheers!