public static function fromTrustAnchorToTarget(Certificate $trust_anchor,
        Certificate $target, CertificateBundle $intermediate = null): self
    {
        return self::toTarget($target, new CertificateBundle($trust_anchor),
            $intermediate);
    }
public static function fromTrustAnchorToTarget(Certificate $trust_anchor,
        Certificate $target, CertificateBundle $intermediate = null): self
    {
        return self::toTarget($target, new CertificateBundle($trust_anchor),
            $intermediate);
    }
public static function fromTrustAnchorToTarget ( Certificate $ trust_anchor , Certificate $ target , CertificateBundle $ intermediate = null ) : self { return self :: toTarget ( $ target , new CertificateBundle ( $ trust_anchor ) , $ intermediate ) ; }
Build certification path from given trust anchor to target certificate,
using intermediate certificates from given bundle.

@param Certificate $trust_anchor Trust anchor certificate
@param Certificate $target Target end-entity certificate
@param CertificateBundle|null $intermediate Optional intermediate
certificates
@return self
Build certification path from given trust anchor to target certificate using intermediate certificates from given bundle .