| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| ejbca_tls [2024/03/21 15:20] – [Par appel API] nekan | ejbca_tls [2024/03/25 16:07] (Version actuelle) – [Par appel API] nekan |
|---|
| --cert "$ScriptAuthentication" \ | --cert "$ScriptAuthentication" \ |
| --header "accept: application/json" \ | --header "accept: application/json" \ |
| "https://${AuthorityAddress}/ejbca/ejbca-rest-api/v1/certificate/CN%3D${1}%2CO%3D${2}%2CC%3DFR/${3}/revocationstatus" \ | "https://${AuthorityAddress}/ejbca/ejbca-rest-api/v1/certificate/CN%3D${1}%2CO%3D${2//[^[:alnum:]]/}%2CC%3DFR/${3}/revocationstatus" \ |
| | jq . | | jq . |
| } | } |
| --cert "$ScriptAuthentication" \ | --cert "$ScriptAuthentication" \ |
| --header "accept: application/json" \ | --header "accept: application/json" \ |
| "https://${AuthorityAddress}/ejbca/ejbca-rest-api/v1/certificate/CN%3D${1}%2CO%3D${2}%2CC%3DFR/${3}/revoke?reason=${4}" \ | "https://${AuthorityAddress}/ejbca/ejbca-rest-api/v1/certificate/CN%3D${1}%2CO%3D${2//[^[:alnum:]]/}%2CC%3DFR/${3}/revoke?reason=${4}" \ |
| | jq . | | jq . |
| } | } |
| * ''EndEntityProfileName'' : Le nom de votre profil de serveur. | * ''EndEntityProfileName'' : Le nom de votre profil de serveur. |
| * ''CertificationAuthorityName'' : Le nom de votre autorité de certification. | * ''CertificationAuthorityName'' : Le nom de votre autorité de certification. |
| | * ''EnrollmentUser'' : Un nom de compte à associer aux certificats créés. Si il n'existe pas, il sera créé automatiquement. |
| | * ''EnrollmentPassword'' : Le mot de passe du compte précédent. |
| * ''Organization'' : Le nom de votre organisation. | * ''Organization'' : Le nom de votre organisation. |
| * ''Country'' : Votre pays. | * ''Country'' : Votre pays. |