About calling create license api from java spring
Answeredwhen trying to call the create license api from the spring framework(java) we are facing error and unable to call the api. how ever when tried calling from the nxvm api documentation its working fine and getting 200 ok response
Please find the attached
1.screenshots for error which we are facing and the respective code written to call the create license api
2. screenshot fo the api documentation working fine



-
Hi M Prakash,
This is a certificate issue (HTTPS Client) issue in your implementation. Just FYI, Nx accepts HTTPS requests by default for security consideration.
The problem appears when your server has self signed certificate.(By default, Nx-self signed). To solve the issue, you can add your own SSL certificate on Nx Witness. (Your own SSL), or you can ignore the SSL certificates verification procedure.
You can refer to these posts on stackoverflow:
- https://stackoverflow.com/questions/45713593/what-is-the-right-way-to-send-a-client-certificate-with-every-request-made-by-th
- https://stackoverflow.com/questions/4072585/disabling-ssl-certificate-validation-in-spring-resttemplate
Or, you can check the document of Spring Rest Template for more detail : https://spring.io/blog/2023/06/07/securing-spring-boot-applications-with-ssl
0 - https://stackoverflow.com/questions/45713593/what-is-the-right-way-to-send-a-client-certificate-with-every-request-made-by-th
Please sign in to leave a comment.
Comments
1 comment