Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7880

The HotRod server build fails if test keys already exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.1.0.Final
    • 9.0.1.Final
    • Build
    • None

      Reproducible by invoking `mvn install` twice (without `clean`):

      [INFO] --- keytool-maven-plugin:1.5:generateKeyPair (password_server) @ infinispan-server-hotrod ---
      [INFO] /bin/sh -c cd /home/dan/Work/infinispan/server/hotrod && /home/dan/Tools/jdk1.8.0_121/jre/../bin/keytool -genkeypair -v -keystore /home/dan/Work/infinispan/server/hotrod/target/test-classes/password_server_keystore.jks -storepass secret -alias default -dname 'CN=HotRod_1,OU=Infinispan,O=JBoss,L=Red Hat,ST=World,C=WW' -keypass secret -validity 365 -keyalg RSA -keysize 2048
      [INFO] keytool error: java.lang.Exception: Key pair not generated, alias <default> already exists
      [INFO] java.lang.Exception: Key pair not generated, alias <default> already exists
      [INFO] 	at sun.security.tools.keytool.Main.doGenKeyPair(Main.java:1597)
      [INFO] 	at sun.security.tools.keytool.Main.doCommands(Main.java:966)
      [INFO] 	at sun.security.tools.keytool.Main.run(Main.java:343)
      [INFO] 	at sun.security.tools.keytool.Main.main(Main.java:336)
      

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: