fabiomsr/okhttp-peer-certificate-extractor

how to pass certificate file to PeerCertificateExtractor.extract method

mohsin1122 opened this issue · 1 comments

hi
i am unable to pick my certificate file from resources1 folder
help me in doing this
i tried by the way you provided in test but it throw errors.

URL certificateUrl = CommonMethods.class.getResource("/mycert.cer");
File certificate = new File(certificateUrl.toURI());
String peerCertificate = PeerCertificateExtractor.extract(certificate);

Can you paste the error that you are getting?