/
Manual how to upload new certificates to DS
ЕСОЗ - публічна документація
Manual how to upload new certificates to DS
DS data model
ds.certs
Name | Type | M/O | Description |
---|---|---|---|
id | uuid | M | |
name | varchar(255) | M | |
data | bytea | M | used to downloaded certificate |
parent | uuid | O | |
type | varchar(255) | M | |
active | boolean | M | |
inserted_at | timastamp | M | |
updated_at | timastamp | M |
Certificate file types
- *.cer format
- *.pem format
Apiary
Process
Using *.p7b package
- Download certificate package from official site
Validate certificate package
openssl pkcs7 -in package_name.p7b -inform DER -print_certs -out output_file
where
- package_name.p7b - is the name of certificate psckage
- output_file - new created file, that should be downloaded to DB
- Load new file with package of certificates filling all necessary fields
- id → unique uuid
- name → any name that describes certificate
- data → validated package file
- parent → null
- type → pem
- active → true
- inserted_at → now
- updated_up → now
- Restart digital-signature pod
- ex. kubectl delete pod -n digital-signature ds-api-547bc68fd7-vfswq
Using *.cer files
- Download three certificates with types root, ocsp and tsp from official site
- Make sure ocsp certificate is connected with root certificate
- Load all files to DB, with necessary connections
id | name | data | parent | type | active | inserted_at | updated_up | |
---|---|---|---|---|---|---|---|---|
root | uuid | name | root certificate | null | root | true | now() | now() |
ocsp | uuid | name | ocsp certificate | root UUID | ocsp | true | now() | now() |
tsp | uuid | name | tsp certificate | null | tsp | true | now() | now() |
4. Restart digital-signature pod (api and ocsp)
- ex. kubectl delete pod -n digital-signature ds-api-7f77b74f4b-ljjs5 ocsp-service-ffc89db9b-wklsh
, multiple selections available,
Related content
Валідації на стороні МІС
Валідації на стороні МІС
Read with this
Async Digital signature check
Async Digital signature check
More like this
Digital signature
Digital signature
Read with this
RCC_CSI-2483_signComposition
RCC_CSI-2483_signComposition
More like this
Sign up via id.gov.ua
Sign up via id.gov.ua
Read with this
RCC_CSI-3205_signComposition
RCC_CSI-3205_signComposition
More like this
ЕСОЗ - публічна документація