Merge branch 'master' into '8670_Enhance_revocation_logic'
Re #8670 - minor extension of integration test during review
Re #8670 - Covered certificate_repository by the CRUD tests
Re #8707 - Added integration test of the RestAPI
Re #8707 - Added integration test of the service
Re #8670 - Modified deletion for historical storage of certificates
Re #8709 - included root certificate into the trust chain
Certificate usage hotfix before DEMO #4 - digital signature does not specify timestamping
Re #8575 - Removed useless print method calls
Re #8585 - Edited certificate_service_test.py tests asserting that various extension field flags are set when certain usages are selected
Re #8585 - Fixed an issue where required extensions based on cert. usages were not present in the generated certificate
Created an utility that converts usages to extension configuration linesDefined which extension field flags are required for certain usages
Re #8576 crl endpointMerge branch '8576_crl_endpoint' into 'master'See merge request aswi/aswi-2021/aswi2021jmsd!15
Re #8577 - Minor refactoring (crl -> crl_ocsp).
Re #8577 - Added OCSP integration tests.
Re #8576 - Added crl endpoint integration tests, fix of serial number
Re #8576 - Added integration test for empty CRL
Re #8576 - Fixed generating index file for generating empty CRL
Re #8576 - integration test of CrlService
Merge branch '8583_interactive_details_page' into 'master'
8583 - Interactive details page
See merge request aswi/aswi-2021/aswi2021jmsd!14
Re #8576 - calling CryptographyService from CrlService, passphrase support
Re #8576 - cryptography.py implemented generate_crl()
Re #8575 - Serial number item in the index file is now always uppercase
Re #8575 - Fixed an issue where when creating an index file the valid_to field was passed instead of the revocation_date field
Re #8575 - Improved crl_service_test.py comments
Re #8575 - Removed a useless CryptographyService fixture
Re #8575 - Implemented CrlService that allows the caller to generate a CA database index of revoked certificates
Added an integration test verifying its validity.Renamed NOT_BEFORE_AFTER_DATE_FORMAT constant to VALID_FROM_TO_DATE_FORMAT in certificate_service.py....
Re #8575 - Added a file that defines methods used for generating CA index file lines
Added unit tests verifying the validity of added methods
Re #8575 - Renamed some variable names in create_crt_test.py
Re #8575 - Added unit tests verifying that serial number is correctly set when creating a certificate
Renamed some create_crt_test.py tests.
Re #8575 - Added unit tests verifying that serial number is set when creating a self signed certificate
Merge branch 'master' into 8583_interactive_details_page
Re #8572 - resolved conflicts
Re #8574 - Added tests for the new filtering functionality.
Re #8572 - Adjusted CertificateService unit tests according to the new `delete_certificate` specification.
Re #8572 - Added tests for certificate deletion.
Re #8583 - Fixed failing tests
Re #8571 - Fixed problems during walk-through code review
Re #8571 - Fixed import error in unittests
Re #8571 - RestAPI testing
Re #8571 - CertificateService tests
Re #8571 - certificate_service.py revocation support end tests
Fixed failing tests after performing a merge.
Merge branch '8578_Implement_database_changes'
Re #8573 - Minor test bugfix (review)
Re #8578 - Edited conftest- tests from private_key_repository_test use unique database
Re #8578 - Repaired test after review- edited conftest - inicialization database before each test
Re #8573 - Fixed an invalid test_get_cert_private_key_incorrect_id test
Re #8573 - Fixed an invalid test_get_cert_private_key test
Re #8578 - Extended tests after review- added second tree of certificates to better cover
Re #8578 - Cover private_key_repository tests- created tests for functions create, read, read_all, update, delete- (+) edited certificate_repository to the same stylistics
Re #8573 - Added some CertificateService tests and improved CryptographyService tests of methods that extract public keys
Re #8573 - Improved testing of extract_public_key_from_certificate and extract_public_key_from_private_key methods
Re #8578 - Remaked tests files- created tests for new functions - set_certificate_revoked, clear_certificate_revocation, get_all_revoked_by, get_all_issued_by
Re #8573 - Implemented extract_public_key_from_certificate
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 #8573 - Added get_public_key method to KeyService that extracts a public key from a private key
Re #8573 - Changed extract_public_key method in such way that it now extracts a public key from a private key instead of a certificate
Re #8573 - Implemented extract_public_key method that allows the caller to extract a public key from a certificate
Re #8579 - Changed conftest.py of service and DAO tests in such way that test_configuration is now used
Re #8475 - Applied FlaskInjector to REST API tests
Re #8569 Fixed failing pipeline
Re #8569 Fixed broken tests after injection implementation
Re #8475 - Fixed minor bug in GET /api/certificates endpoint with filtering
Re #8475 - Added redirect from "/" to "/static/index.html"
Re #8476 - Changed structure of tests- Renamed DAO integration tests so that they are found by pytest- Moved RestAPI tests from UnitTests to IntegrationTests
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.
Re #8476 - Implemented `list_certificates` with unit tests.
Re #8476 - Created basic unit tests for `create_certificate`.
Re #8473 - Added get_subject_from_certificate to certificate_service.py
Re #8472 - Added a parameter to the craete_sscrt method in CryptographyService in order to be able to specify tha number of days for which the generated certificate will be valid.
Re #8472 - Added further tests of the KeyService class
Re #8472 - Added KeyService.delete test and renamed a test suite
Applied a small change to the KeyService.get_keys method
Re #8472 - Implemented delete_certificate method in CertificateService and added a test validating it
Re #8472 - Implemented get_chain_of_trust method and added an integration test validating it
Added return type specification to read_all method in CertificateRepository
Re #8472 - Implemented get_certificates method and added an integration test validating it
Added fixtures providing a unique DB connection for each test
Re #8472 - Implemented create_end_cert method and added an integration test validating it
Re #8472 - Added the ability to pass usage dictionary to create_ca and create_root_ca methods via optional parameter
Re #8472 - Implemented create_ca method in CertificateService and added test verifying this method's validity
Re #8472 - Implemented get_certificate method in CertificateService and added a test testing this method
Re #8472 - Extended integration test asserting correct reading from the database
Re #8472 - Improved SQL connection/cursor fixtures in such way that connection to DB happens only once per test module
Re #8472 - Added simple integration tests
Re #8472 - Improved parse_cert_pem method in such way that it also parses notBefore and notAfter fields now
Re #8472 - Finished implementation of parse_cert_pem method that parses a subject out of a PEM formatted certificate
Added few unit tests testing this method.
Re #8472 - WIP commit of adding a method capable of parsing a Subject from a cert PEM
Re #8471 - Merge implement DAO - source code
Re #8471 - Added initialize test
Testing GitLab+MS Teams pipelines integration (this one should pass)
Testing GitLab+MS Teams pipelines integration (this one should fail)
#8219 - Added pytest dependency used for testing
- added a simple testcase that checks whether index page is being served correctly