Could not generate certificates
-
I am trying to setup "Theopenem" and getting an error message " could not generate certificates". The logs are showing as following in related with the issue. Any help would be appreciated. Thanks " 2019-07-19 10:54:56,497 [24] DEBUG Toems_ApplicationApi.Controllers.Authorization.CustomAuthAttribute http://localhost:8080/Setting/GetCAInt/
2019-07-19 10:54:59,408 [10] DEBUG Toems_ApplicationApi.Controllers.Authorization.CustomAuthAttribute http://localhost:8080/Setting/GenerateCAInt/
2019-07-19 10:54:59,408 [10] DEBUG Toems_Service.Entity.ServiceCertificate Certificates cannot be generated without updating the web.config key AllowCAGen
2019-07-19 10:54:59,423 [10] DEBUG Toems_ApplicationApi.Controllers.Authorization.CustomAuthAttribute http://localhost:8080/Setting/GetCAInt/ -
You need to update your web.config file to allow generating certificates. By default you can generate them, so you must have changed the value before you created the certs. It's called AllowCAGen in the Toems-API Web.config
-
@theopenem_admin said in Could not generate certificates:
You need to update your web.config file to allow generating certificates. By default you can generate them, so you must have changed the value before you created the certs. It's called AllowCAGen in the Toems-API Web.config
Thanks for your reply. Yes, I changed the value to "false" before the certificate was generated. I have changed it back to the default but the system is still showing "could not generate certificates" Please advise
Many Thanks
Jawad -
Has your error in the log changed? The last error clearly stated about the value in web.config
Certificates cannot be generated without updating the web.config key AllowCAGen -
Yes, the error has changed as the following.
Many Thanks2019-07-19 22:17:09,679 [3] DEBUG Toems_ApplicationApi.Controllers.Authorization.CustomAuthAttribute http://localhost:8080/Setting/GetCAInt/
2019-07-19 22:17:13,066 [25] DEBUG Toems_ApplicationApi.Controllers.Authorization.CustomAuthAttribute http://localhost:8080/Setting/GenerateCAInt/
2019-07-19 22:17:22,718 [25] DEBUG Toems_ApplicationApi.Controllers.Authorization.CustomAuthAttribute http://localhost:8080/Setting/GetCAInt/
2019-07-19 22:17:26,936 [25] DEBUG Toems_ApplicationApi.Controllers.Authorization.CustomAuthAttribute http://localhost:8080/FileSystem/GetLogs/ -
Just to help with this. What happened to me is that I missed the step of setting the organization name. Once set, I could generate the certificates.