Skip to content

Commit

Permalink
[JENKINS-49532] autogenerated keystore should not be kept in temp dir…
Browse files Browse the repository at this point in the history
…ectory (#42)
  • Loading branch information
kuisathaverat committed Feb 26, 2018
1 parent 39c42ee commit f0c2b16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/jenkinsci/plugins/saml/BundleKeyStore.java
Expand Up @@ -78,7 +78,8 @@ public synchronized void init() {
try {

if (keystore == null) {
keystore = File.createTempFile("saml-jenkins-keystore-", ".jks");
String jenkinsHome = jenkins.model.Jenkins.getInstance().getRootDir().getPath();
keystore = java.nio.file.Paths.get(jenkinsHome, "saml-jenkins-keystore.jks").toFile();
keystorePath = "file:" + keystore.getPath();
}

Expand Down

0 comments on commit f0c2b16

Please sign in to comment.