additional fix to #364
This commit is contained in:
parent
ece00956d9
commit
1e2eb9b07a
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ import java.security.cert.CertificateFactory;
|
||||||
import java.security.cert.X509Certificate;
|
import java.security.cert.X509Certificate;
|
||||||
import java.security.spec.PKCS8EncodedKeySpec;
|
import java.security.spec.PKCS8EncodedKeySpec;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Calendar;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
@ -130,6 +131,7 @@ public class CertSignController {
|
||||||
signature.setName(name);
|
signature.setName(name);
|
||||||
signature.setLocation(location);
|
signature.setLocation(location);
|
||||||
signature.setReason(reason);
|
signature.setReason(reason);
|
||||||
|
signature.setSignDate(Calendar.getInstance());
|
||||||
|
|
||||||
// Load the PDF
|
// Load the PDF
|
||||||
try (PDDocument document = PDDocument.load(pdf.getBytes())) {
|
try (PDDocument document = PDDocument.load(pdf.getBytes())) {
|
||||||
|
|
Loading…
Reference in a new issue