How can i enable Swagger UI using docker image #177
Replies: 3 comments 2 replies
-
Hi, The swagger UI is not deployed on the container (because the flag ejbca.productionmode=true) is set there, since we consider it a security risk and don't deploy it by default. If you can make do you can use the REST API reference (https://doc.primekey.com/ejbca/ejbca-operations/ejbca-ca-concept-guide/protocols/ejbca-rest-interface#EJBCARESTInterface-rest_api_reference) or download EJBCA as source and build with ejbca.productionmode=false in ejbca.properties Cheers, |
Beta Was this translation helpful? Give feedback.
-
thanks @mike-agrenius-kushner . i want to generate TLS and other certificates using api. However, the documentation mentioned below lines which are not showing my ejbca server.
if i visit example.com/ejbca/doc/rest/ then i get 404 error page. i have already enabled api in protocol section. how can i fix this issues. |
Beta Was this translation helpful? Give feedback.
-
See #661 You can download swagger.json from GitHub: https://github.com/Keyfactor/ejbca-ce/blob/main/modules/ejbca-rest-api/resources/swagger.json Then you can run swagger locally by for exampel: That gives you Swagger API. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I tried to enable Swagger UI in my EJBCA server running via docker image. However, i didn't found any way to enable it. How can i enable Swagger UI in a docker image. ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions