added certificate api method