Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345133

Test sun/security/tools/jarsigner/TsacertOptionTest.java failed: Warning found in stdout

XMLWordPrintable

        stdout: [requesting a signature timestamp
        TSA certificate: X.509, CN=TSA
        Signature algorithm: SHA384withRSA, 2048-bit key
        [trusted certificate]
         updating: META-INF/MANIFEST.MF
           adding: META-INF/SIGN_ALI.SF
           adding: META-INF/SIGN_ALI.RSA
          signing: TsacertOptionTest.txt

        >>> Signer
            X.509, CN=Test
            Signature algorithm: SHA384withRSA, 2048-bit key
            [certificate is not valid until 11/27/24, 4:00?PM]
            X.509, CN=CA
            Signature algorithm: SHA384withRSA, 2048-bit key
            [trusted certificate]
        >>> TSA
            X.509, CN=TSA
            Signature algorithm: SHA384withRSA, 2048-bit key
            [trusted certificate]

        jar signed.

        Warning:
        The signer certificate is not yet valid.

        The signer certificate will expire on 2025-11-27.
        ];
         stderr: []
         exitValue = 0

        java.lang.RuntimeException: 'Warning:' found in stdout
        at jdk.test.lib.process.OutputAnalyzer.stdoutShouldNotContain(OutputAnalyzer.java:337)
        at TsacertOptionTest.start(TsacertOptionTest.java:166)
        at TsacertOptionTest.main(TsacertOptionTest.java:65)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:565)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
        at java.base/java.lang.Thread.run(Thread.java:1447)

              mdonovan Matthew Donovan
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: