sergiosorias / jscep

Automatically exported from code.google.com/p/jscep
MIT License
0 stars 0 forks source link

Issue in generateCertificate method in org.jscep.server.ScepServlet class #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are two lines in this method
        generator.setSerialNumber(caSerial);
        generator.setSubjectDN(name);

I believe correct lines should be (to use passed parameters)

        generator.setSerialNumber(serial);
        generator.setSubjectDN(subject);

Also, I think this is not correct. However, I may be wrong with this

generator.setNotAfter(new Date());
generator.setNotBefore(new Date());

The time and date is written to certificate. So, newly created certificate is 
always valid just 1 second (or may be even smaller time, if the time in 
certificate is in milliseconds).

Original issue reported on code.google.com by victor.r...@gmail.com on 12 May 2011 at 10:40

GoogleCodeExporter commented 9 years ago

Original comment by davidgrant41 on 13 May 2011 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by davidgrant41 on 13 May 2011 at 9:28

GoogleCodeExporter commented 9 years ago

Original comment by davidgrant41 on 13 May 2011 at 9:32

GoogleCodeExporter commented 9 years ago

Original comment by davidgrant41 on 7 Jun 2011 at 11:49

GoogleCodeExporter commented 9 years ago

Original comment by da...@grant.org.uk on 13 Jul 2011 at 6:35

GoogleCodeExporter commented 9 years ago

Original comment by da...@grant.org.uk on 13 Jul 2011 at 6:37

GoogleCodeExporter commented 9 years ago

Original comment by da...@grant.org.uk on 29 Mar 2012 at 5:10

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1365.

Original comment by da...@grant.org.uk on 14 Jun 2012 at 12:57

GoogleCodeExporter commented 9 years ago

Original comment by da...@grant.org.uk on 21 Aug 2012 at 11:55