mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +00:00 
			
		
		
		
	cloud_discovery: run est_client enroll before discovery process
Always obtain EST certificates before starting the discovery process. This ensures certificates are already available from the EST server, since the FQDN may be provided via DHCP discovery or another discovery method, and requires valid certificates to proceed. Fixes: WIFI-15123 Signed-off-by: Marek Kwaczynski <marek@shasta.cloud>
This commit is contained in:
		 Marek Kwaczynski
					Marek Kwaczynski
				
			
				
					committed by
					
						 John Crispin
						John Crispin
					
				
			
			
				
	
			
			
			 John Crispin
						John Crispin
					
				
			
						parent
						
							7c2b8e8de0
						
					
				
				
					commit
					957e3ca997
				
			| @@ -260,11 +260,11 @@ function interval_handler() { | |||||||
| 		if (!time_is_valid()) | 		if (!time_is_valid()) | ||||||
| 			return; | 			return; | ||||||
|  |  | ||||||
| 		discovery_method = DISCOVER_DHCP; | 		if (system('/usr/bin/est_client enroll')) | ||||||
| 		if (discover_dhcp()) |  | ||||||
| 			return; | 			return; | ||||||
|  |  | ||||||
| 		if (system('/usr/bin/est_client enroll')) | 		discovery_method = DISCOVER_DHCP; | ||||||
|  | 		if (discover_dhcp()) | ||||||
| 			return; | 			return; | ||||||
|  |  | ||||||
| 		discovery_method = DISCOVER_FLASH; | 		discovery_method = DISCOVER_FLASH; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user