private void importExampleCertificates(){
  if (fileHelper.startedFromJar()) {
    try {
      BurpCertificate c1=importCertificate(fileHelper.exportRessourceFromJar("examples/certificate.pem"));
      importPrivateKey(c1,fileHelper.exportRessourceFromJar("examples/private_key_rsa.pem"));
      importCertificateChain(fileHelper.exportRessourceFromJar("examples/example.org_chain.pem"));
      setCertificateDetails(c1);
    }
 catch (    IOException e) {
      setStatus("Error importing example certificates (" + e.getMessage() + ")");
    }
catch (    Exception e) {
      setStatus("Error (" + e.getMessage() + ")");
    }
  }
 else {
    BurpCertificate c1=importCertificate("src/main/resources/examples/certificate.pem");
    importPrivateKey(c1,"src/main/resources/examples/private_key_rsa.pem");
    importCertificateChain("src/main/resources/examples/example.org_chain.pem");
    setCertificateDetails(c1);
  }
}

private void importExampleCertificates ( ) { if ( fileHelper . startedFromJar ( ) ) { try { BurpCertificate c1 = importCertificate ( fileHelper . exportRessourceFromJar ( "examples/certificate.pem" ) ) ; importPrivateKey ( c1 , fileHelper . exportRessourceFromJar ( "examples/private_key_rsa.pem" ) ) ; importCertificateChain ( fileHelper . exportRessourceFromJar ( "examples/example.org_chain.pem" ) ) ; setCertificateDetails ( c1 ) ; } catch ( IOException e ) { setStatus ( "Error importing example certificates (" + e . getMessage ( ) + ")" ) ; } catch ( Exception e ) { setStatus ( "Error (" + e . getMessage ( ) + ")" ) ; } } else { BurpCertificate c1 = importCertificate ( "src/main/resources/examples/certificate.pem" ) ; importPrivateKey ( c1 , "src/main/resources/examples/private_key_rsa.pem" ) ; importCertificateChain ( "src/main/resources/examples/example.org_chain.pem" ) ; setCertificateDetails ( c1 ) ; } }
import preloaded certificates as examples
