Optimized get X509 certificate extensions