oleghasjanov
1aa470727a
refactoring
2025-04-22 11:18:18 +03:00
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
Timo Võhmar
5a3774e011
Merge pull request #2479 from internetee/2470-fix-phantom-statuses
...
Fixed phantom domain statuses
2022-11-29 10:25:14 +02:00
Thiago Youssef
59fe7dffbe
Migrate publishable
field name to registrant_publishable
2022-11-25 09:31:50 +02: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
dinsmol
f4e0084895
fixed codeclimate errors (partically)
2021-09-09 09:19:09 +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
e2f377f1c2
Merge remote-tracking branch 'origin/master' into repp-domains
2021-03-22 14:05:42 +02:00
Oleg Hasjanov
743fb61daf
API: addeed extended data from registrant
2021-03-09 12:27:33 +02:00
Karl Erik Õunapuu
9854f82669
Registrant API: Add registrant org true/false attribute
2021-02-05 12:00:49 +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
d3079bb8ee
Registrant API: Add registrant ident to simplified domains list
2021-01-04 13:26:04 +02:00
Karl Erik Õunapuu
15d2ffe200
Registrant API: Return associated domains for contact query
2020-12-04 14:53:55 +02:00
Karl Erik Õunapuu
15e090c3b1
Fix CC issue
2020-12-01 12:59:04 +02:00
Karl Erik Õunapuu
c9d4aaded9
Fix registrant domain serializer
2020-12-01 12:31:28 +02:00
Karl Erik Õunapuu
3761fe7bbd
Merge remote-tracking branch 'origin/master' into registrant-api-fetch-improvements
2020-11-30 10:34:28 +02:00
Karl Erik Õunapuu
7b33613941
Reduce domains list API call
2020-11-30 10:31:46 +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
Alex Sherman
c79042f789
Add registrant api companies endpoint
2020-10-12 16:32:37 +05:00
Maciej Szlosarczyk
fd6e5c9bf9
Add trailing comma to hash
2020-06-18 10:54:25 +03:00
Maciej Szlosarczyk
74a9d59753
Add DNS keys to domain API response
...
It is fairly similar to what we do for WHOIS records, but one query is
slightly rewritten with removal of try-catch block
2020-06-18 10:42:39 +03:00
Maciej Szlosarczyk
28695f4c22
add email field to contact serializer
2020-06-12 14:32:53 +03:00
Artur Beljajev
f0a7edd6d8
Ignore legacy database columns
...
Closes #1377
2019-12-15 18:27:01 +02:00
Artur Beljajev
cea834d5b7
Change domains.delete_at
database column type to date, rename to
...
`delete_date`
Closes #1125
2019-05-02 16:32:44 +03:00
Artur Beljajev
1ad62bf4bd
Remove domains.reserved
database column as unused
2019-04-03 14:49:13 +03:00
Artur Beljajev
5107d2d3a9
Refactor force delete
procedure
...
- Change `domains.force_delete_at` database column type to date,
rename to `force_delete_date`
- Save `force_delete_date` in application timezone
- Improve tests
Fixes #812 , #253
2019-03-28 18:19:51 +02:00