sun.security.x509.SerialNumber constructor should not accept negative numbers

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • tbd
    • Affects Version/s: 7-pool, 8, 9
    • Component/s: security-libs
    • None

      We could create a SerailNumber object with Negative numbers. I feel it should throw IllegalArgumentException for negative numbers as the certificate serial number cannot be negative.

                  BigInteger bigInteger0 = new BigInteger("-1");
                  SerialNumber serialNumber1 = new SerialNumber(bigIntegerN);
       

            Assignee:
            Svetlana Nikandrova (Inactive)
            Reporter:
            Raghu Nair
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: