I have to change the method of reconstruct the chain of a certificate.
This time, the authorityInfoAccess extension gives the URL for the CRT
file used to sign the final entity digital certificate. All chain
reconstruction is based on signature validation. There is a problem
unfixed about four or more levels of AC in the chain. I could not find
any x509 with more than 3 hops to the root AC where authorityInfoAccess
extension is present on each level. Yes, sometimes authorityInfoAccess
is not present so this script will fail.