As per the title, is there a way to reliably identify a certificate as an intermediate certificate? I can identify if a certificate is a root certificate. But i can not tell the difference between an intermediate certificate and end/leaf certificate. Is there anything that would? such as one of the extensions?
Your question sounds like you want to read more about Certificate Path Validation, e.g. in RFC 5280.