Commit graph

29 commits

Author SHA1 Message Date
oleghasjanov
ae96863b88 feat: Implement P12 certificate generation improvements
- Replace hardcoded P12 password with randomly generated one
- Add p12_password column to certificates table
- Update certificate serializer to include p12 password in response
- Remove deprecated certificate revocation logic
- Add tests for certificate revocation functionality
- Implement async P12 generation via Sidekiq job
- Add job uniqueness to prevent parallel certificate generation

Migration changes:
- Replace p12_password_digest with p12_password column
- Add safety measures for column removal
2025-04-16 11:47:52 +03:00
oleghasjanov
fe90d787c2 fix: improve certificate parsing and file extensions
- Fix PKCS12 container parsing by using consistent password
- Add proper file extensions for certificate downloads (.key, .csr, .crt)
- Improve private key parsing by removing unnecessary Base64 decoding
- Add error logging for certificate parsing failures
- Clean up certificate serializer code

The main changes include:
- Using P12_PASSWORD consistently across generation and parsing
- Adding proper file extensions for different certificate types
- Fixing private key parsing to handle PEM format correctly
- Adding detailed error logging for debugging purposes
- Removing redundant code comments and improving code clarity

This commit improves the reliability of certificate handling
and provides better user experience with correct file extensions.
2025-04-16 11:47:52 +03:00
oleghasjanov
3b594cf30d fix tests 2025-04-16 11:47:52 +03:00
oleghasjanov
5355397025 feat: improve certificate download extensions
Update certificate download functionality to use appropriate file extensions:
- Use .p12 extension for PKCS#12 files
- Keep .pem extension for PEM-encoded files (CSR, CRT, private key)

This change ensures that downloaded certificate files have the correct extension based on their format, making it easier for users to identify and use the files correctly.
2025-04-16 11:47:52 +03:00
tsoganov
637cabf95f Handling contact verifications 2024-11-14 08:37:09 +02:00
Sergei Tsoganov
47b6a1b87a Added endpoints for creating and downloading api user certificates 2023-06-28 15:48:40 +03:00
Sergei Tsoganov
c48d03dd49 Reset invoice serializer 2023-06-06 09:50:46 +03:00
Sergei Tsoganov
bf3d971d7c Refactor and updated api user serializer 2023-05-30 13:21:29 +03:00
Sergei Tsoganov
0069d57c6f Fixed codeclimate issues 2023-05-29 15:02:41 +03:00
Sergei Tsoganov
b84e9e1579 Added ApiUser and WhiteIp endpoints to REPP API 2023-05-29 14:26:53 +03:00
Sergei Tsoganov
0a77011bdb Fixed test 2022-11-10 17:59:39 +02:00
Sergei Tsoganov
fc99ada943 Fixed phantom domain statuses 2022-11-10 17:17:57 +02:00
Sergei Tsõganov
d589aa1681 Created job for sending monthly invoices 2022-08-21 19:11:39 +03:00
Sergei Tsõganov
26cb791586 Fixes after repp-apidoc update 2022-07-12 15:48:43 +03:00
Sergei Tsõganov
3812e398bf Fixed codeclimate errors 2022-07-12 15:48:42 +03:00
Sergei Tsõganov
7c570e2916 Fixed codeclimate errors 2022-07-12 15:48:42 +03:00
Sergei Tsõganov
a5ffce290d Updated REPP API for new registrar portal 2022-07-12 15:47:25 +03:00
Thiago Youssef
750bf0821c Remove contact code cache from domain contacts table 2022-05-04 14:38:14 +03:00
Thiago Youssef
8be020582e Add status notes to repp domain serializer 2022-04-12 13:19:32 +03:00
Karl Erik Õunapuu
546330b178
REPP: Add renew exp_date sanity check 2021-03-23 13:14:31 +02:00
Karl Erik Õunapuu
016c5e802c
REPP: Domain info for not-sponsoring registrars 2021-03-23 12:04:03 +02:00
Karl Erik Õunapuu
265e135cd0
REPP: Remove fax from contact object 2021-03-23 10:29:15 +02:00
Karl Erik Õunapuu
117b682990
Rename auth_info / authorization_code to transfer_code 2021-03-22 16:29:40 +02:00
Karl Erik Õunapuu
d1cd0867c8
Fix some CC issues 2021-01-27 15:55:37 +02:00
Karl Erik Õunapuu
e55fc833e7
REPP: Serialize domains 2021-01-27 13:03:54 +02:00
Karl Erik Õunapuu
9a7827107f
REPP: Create domain serializer 2021-01-26 17:38:13 +02:00
Karl Erik Õunapuu
a41abf8176
Add response to REPP log 2020-11-17 13:00:47 +02:00
Karl Erik Õunapuu
7edf48c885
Fix some CC issues 2020-11-17 12:00:42 +02:00
Karl Erik Õunapuu
3d0150076c
REPP: Hide contact internal ID 2020-11-16 14:46:37 +02:00