lemur/lemur/certificates
Hossein Shafagh f452a7ce68 adding a new API for faster certificate lookup.
The new API api/1/certificates/valid returns only non-expired (not_after >= today) certs which have auto-rotate enabled:

cn is a required parameter:

http://localhost:8000/api/1/certificates/valid?filter=cn;example.com
cn can also be a database string wildcard ('%'):

http://localhost:8000/api/1/certificates/valid?filter=cn;%
owner is the additional parameter, and must be the email address of the owner:

http://localhost:8000/api/1/certificates/valid?filter=cn;example.com&owner=hossein@example.com
given owner  and a database string wildcard ('%') one can retrieve all certs for that owner, which are still valid, and have auto-rotate enabled:

http://localhost:8000/api/1/certificates/valid?filter=cn;%&owner=hossein@example.com
2019-05-11 18:06:51 -07:00
..
__init__.py initial commit 2015-06-22 13:47:27 -07:00
cli.py Gather more metrics on certificate reissue/rotate jobs 2019-05-08 07:48:08 -07:00
hooks.py Addressing comments. Updating copyrights. Added function to determine authorative name server 2018-05-29 10:23:01 -07:00
models.py Merge branch 'master' into verify-cert-chain 2019-03-07 12:46:19 -08:00
schemas.py Merge branch 'master' into master 2019-04-17 10:28:46 -07:00
service.py adding a new API for faster certificate lookup. 2019-05-11 18:06:51 -07:00
utils.py Parse SubjectAlternativeNames from CSR into Lemur Certificate 2019-03-27 13:46:33 +01:00
verify.py docstring update in verify.py 2018-09-27 10:11:13 -04:00
views.py adding a new API for faster certificate lookup. 2019-05-11 18:06:51 -07:00