Add local time reporting
This commit is contained in:
parent
16d1e6f331
commit
577985b4a5
@ -20,6 +20,7 @@ from certbuilder import CertificateBuilder, pem_armor_certificate
|
|||||||
from csrbuilder import CSRBuilder, pem_armor_csr
|
from csrbuilder import CSRBuilder, pem_armor_csr
|
||||||
from configparser import ConfigParser, NoOptionError
|
from configparser import ConfigParser, NoOptionError
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
from email.utils import formatdate
|
||||||
from oscrypto import asymmetric
|
from oscrypto import asymmetric
|
||||||
from pinecrypt.client import const
|
from pinecrypt.client import const
|
||||||
|
|
||||||
@ -281,7 +282,8 @@ def certidude_enroll(fork, no_wait, kerberos):
|
|||||||
"verify": authority_path,
|
"verify": authority_path,
|
||||||
"headers": {
|
"headers": {
|
||||||
"Content-Type": "application/pkcs10",
|
"Content-Type": "application/pkcs10",
|
||||||
"Accept": "application/x-x509-user-cert,application/x-pem-file"
|
"Accept": "application/x-x509-user-cert,application/x-pem-file",
|
||||||
|
"Date": formatdate(usegmt=True),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user