[Merge conflict] - reverted controller version from #8702
Merge branch 'master' into '8705_rapi_private_key'
Re #8705 - Review updates.
Merge branch '8702_augmented_filtering' into 'master'
8702 Augmented filtering of certificates
See merge request aswi/aswi-2021/aswi2021jmsd!25
Merge branch '8704_create_cert_extensions' into 'master'
8704 Let certificate extensions be specified via REST API
See merge request aswi/aswi-2021/aswi2021jmsd!24
Re #8704 - Minor fix (return code 500 -> 400)
Merge branch '8708_PKCS_Identity' into 'master'
8708 pkcs identity
See merge request aswi/aswi-2021/aswi2021jmsd!22
Re #8708 - Changed the generate_pkcs_identity method of the CertificateService in such way that the Certificate class instance is now passed instead of a certificate ID resulting in a decrease of SQL queries.
Re #8704 - Minor fix (extensions default None -> "")
Re #8704 - Added the `extension` parameter to the create endpoint.
Re #8702 - Minor bug and flow fixes.
Re #8702 - Reformed CertController's `get_list_of_certs` method, improved filtering logic.
Re #8708 - Added a new REST API endpoint used for generating a PKCS12 identities of certificates
Re #8705 - Adjusted CertController to handle all combinations of PEM/pass supply. Added calls to a not-yet-existing `verify_key(...)` method of PK service.
Re #8700 - Review merge.
Re #8707 - Log level mapping via dictionary, minor adjustments during review
Re #8707 - Implemented status in the controller, prepared method in CertificateService
Merge branch '8570_Implement_logging'
Re #8700 - Implemented certificate revalidation check and fixed affected tests
Re #8709 - included root certificate into the trust chain
Re #8570 - Messages logging
Re #8577 - Minor refactoring (crl -> crl_ocsp).
Re #8577 - Added handle methods for OCSP to the CrlOcspController.
Re #8576 - implemented CRL endpoint
Re #8576 - moved return codes to separate file
Re #8572 - resolved conflicts
Re #8574 - Extended the `get_certificate_list` method of CertificateController to reflect the filtering query 'issuedby' update.
Re #8572 - Added the `delete_certificate(id)` method to the Controller.
Re #8571 - Fixed problems during walk-through code review
Re #8571 - RestAPI testing
Re #8571 - Added RestAPI endpoint for revoking certificates
Re #8573 - Fixed typos
Re #8573 - /api/certificates/{id}/public_key endpoint now does not extract public key from private key but does so directly from the certificate instead
Re #8573 - Implemented get_private_key_of_a_certificate method in CertController and added /api/certificates/<id>/private_key endpoint
Re #8573 - Implemented get_public_key_of_a_certificate method in CertController and added /api/certificates/<id>/public_key endpoint
Re #8569 Added application initialization and running dependency injection
Re #8475 fix failing setup of CertificateController
Re #8475 - Add a try/catch block in order to account for invalid JSON data being passed when accessing /api/certificates endpoint
Re #8475 - Fixed minor bug in GET /api/certificates endpoint with filtering
Re #8475 - Getting root and trust chain from controller uses correct service
Re #8475 - Connection to the RestAPI
Re #8476 - Heavy refactoring and added comments.
Re #8476 - Implemented and tested `get_cert_chain(id)`.
Re #8476 - Implemented and tested `get_cert_root(id)`.
Re #8476 - Implemented and tested `get_cert_details(id)`.
Re #8476 - Added and tested `get_certificate(id)`.
Re #8476 - Fixed and tested filtering for GET /api/certificates
Re #8476 - Refactored the application; swagger is not used for code generation anymore, REST API is being implemented from scratch. Migration only, fixing tests.