test/jdk/sun/security/pkcs12/SameDN.java
changeset 59104 046e4024e55a
parent 53420 2190f45140b1
equal deleted inserted replaced
59103:4a09d4df104c 59104:046e4024e55a
    53             throw new Exception("user2 not signed by ca2");
    53             throw new Exception("user2 not signed by ca2");
    54         }
    54         }
    55     }
    55     }
    56 
    56 
    57     static void genkeypair(String alias, String dn) throws Exception {
    57     static void genkeypair(String alias, String dn) throws Exception {
    58         keytool(COMMON + "-genkeypair -alias " + alias + " -dname " + dn)
    58         keytool(COMMON + "-genkeypair -keyalg DSA -alias " + alias + " -dname " + dn)
    59                 .shouldHaveExitValue(0);
    59                 .shouldHaveExitValue(0);
    60     }
    60     }
    61 
    61 
    62     static void gencert(String issuer, String subject) throws Exception {
    62     static void gencert(String issuer, String subject) throws Exception {
    63         keytool(COMMON + "-certreq -alias " + subject + " -file req")
    63         keytool(COMMON + "-certreq -alias " + subject + " -file req")