Modify

Opened 4 years ago

Last modified 4 years ago

#15327 new enhancement

dynamic_dns_updater.sh ignore certificate option

Reported by: jonas.b@… Owned by: developers
Priority: normal Milestone: Attitude Adjustment 12.09.1
Component: other Version: Trunk
Keywords: Cc:

Description

If use_https '2' is set then do not check the certificate of dynamic DNS provider's update site.
Issue written on related OpenWRT wiki site http://wiki.openwrt.org/doc/howto/ddns.client#curl.sslv2.3.support

106c106
< if [ "x$use_https" = "x1" ]
---
> if [ "x$use_https" = "x1" ] || [ "x$use_https" = "x2" ]
111c111,114
<               if [ -f "$cacert" ]
---
>               if [ "x$use_https" = "x2" ]
>               then
>                       retrieve_prog="${retrieve_prog}--no-check-certificate "
>               elif [ -f "$cacert" ]
120c123,126
<               if [ -f "$cacert" ]
---
>               if [ "x$use_https" = "x2" ]
>               then
>                       retrieve_prog="${retrieve_prog}--insecure "
>               elif [ -f "$cacert" ]
162c168
< if [ "x$use_https" = x1 ]
---
> if [ "x$use_https" = "x1" ] || [ "x$use_https" = "x2" ]

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jonas.b@…

... or simply check whether if cacert option has a value. If not, then do an insecure update (do not check server's certificate)...

111c111,114
<               if [ -f "$cacert" ]
---
>               if [ -z "$cacert" ]
>               then
>                       retrieve_prog="${retrieve_prog}--no-check-certificate "
>               elif [ -f "$cacert" ]
120c123,126
<               if [ -f "$cacert" ]
---
>               if [ -z "$cacert" ]
>               then
>                       retrieve_prog="${retrieve_prog}--insecure "
>               elif [ -f "$cacert" ]
162c168
< if [ "x$use_https" = x1 ]
---
> if [ "x$use_https" = "x1" ]

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.