Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
| Порівняння попередніх версій Попередня ревізія Наступна ревізія | Попередня ревізія | ||
|
software:ovh [2020/08/30 03:56] charon [Using API] |
software:ovh [2020/08/30 04:06] (поточний) charon |
||
|---|---|---|---|
| Рядок 7: | Рядок 7: | ||
| - the application key (AK) - can be publicly shared; | - the application key (AK) - can be publicly shared; | ||
| - secret application key (AS) - keep it secret. | - secret application key (AS) - keep it secret. | ||
| - | This is just start! Now you need to obtain Consumer key (CK)! To request consumer key you must use AK from previous step, write access rules and set redirection URL | + | This is just start! Now you need to obtain Consumer key (CK)! To request consumer key you must use AK from previous step, write access rules and set redirection URL: |
| + | < | ||
| + | $ curl -XPOST -H" | ||
| + | https:// | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ], | ||
| + | " | ||
| + | }' | ||
| + | </ | ||
| + | After that you'll receive CK and validation URL | ||
| + | < | ||
| + | {" | ||
| + | </ | ||
| + | Open validation URL and enter NIC handle and password to authorize CK. | ||
| + | |||
| + | Or you can go easy way: https:// | ||
| + | < | ||
| + | GET / | ||
| + | PUT / | ||
| + | POST / | ||
| + | DELETE / | ||
| + | </ | ||
| + | Create keys. | ||
| + | After that you'll get AK, AS and CK. Just put them to ACME client (Lego, for example). | ||