how to pass certificate file to PeerCertificateExtractor.extract method
mohsin1122 opened this issue · 1 comments
mohsin1122 commented
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);
fabiomsr commented
Can you paste the error that you are getting?