add extract certificate methods