Ignore invalid self-signed ssl certificate warning in Grunt

狂风中的少年 提交于 2019-12-12 01:43:17

问题


I'm using Grunt with grunt-nwabap-ui5uploader plugin to deploy an application to NW ABAP server, I have written a upload task in Gruntfile and trying to execute it, but having an error about self signed certificate, which aborts the task. I have tried to use option --force to ignore the warning but it seems that this task isn't executed:

>     Running "nwabap_ui5uploader:upload_webapp" (nwabap_ui5uploader) task
>     Warning: Error: self signed certificate (undefined) Used --force, continuing.
>     
>     Done, but with warnings.

Is there a way to ignore this warning and execute the task anyway?


回答1:


Actually found a solution:

Set the useStrictSSL mode option to false in Gruntfile upload task. https://github.com/pfefferf/grunt-nwabap-ui5uploader#optionsconnusestrictssl



来源:https://stackoverflow.com/questions/38591553/ignore-invalid-self-signed-ssl-certificate-warning-in-grunt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!