0

I want to access the whole ssl server certificate (both child and parent (CA)).

I can get the child certificate details by Here.

Will someone help me with that?

Community
  • 1
  • 1

1 Answers1

0

The same technique applies but instead of the ['peer_certificate'] element there should also be a chain element. I don't know what it's called but a bit of research or experiment will tell you. The chain element will itself be an array and you will need to parse each element of it.

user207421
  • 305,947
  • 44
  • 307
  • 483
  • i use `$output = shell_exec('openssl s_client -showcerts -connect host.host:443');` to get my work done, where $output is string in well format, – Tanvir Islam Mar 18 '14 at 12:13