Feature #8573
Aktualizováno uživatelem Jan Pašek před téměř 4 roky(ů)
Endpoints that enable retrieving a private and public key in PEM format of a given certificate shall be implemented
* Two endpoints GET /api/certificates/{id}/publickey and GET /api/certificates/{id}/privatekey
* The first endpoint just queries the certificate using CertificateService, gets a private key ID, queries private key from the KeyService and returns its data.
* The second endpoint will do the same, except at the end it calls a new method of KeyService get_public_key(private_key) that utilizes OpenSSL via CryptographyService to get a public key out of the private key provided
Requirements: FR 1.1.7, FR 2.1.7