mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 18:38:10 +00:00 
			
		
		
		
	est_client: cloud_discovery: fixup demo environment
Signed-off-by: Arif Alam <arif.alam@netexperience.com>
This commit is contained in:
		| @@ -49,10 +49,12 @@ function detect_certificate_type() { | ||||
| 	let issuer = pipe.read("all"); | ||||
| 	pipe.close(); | ||||
|  | ||||
| 	if (!match(issuer, /Telecom Infra Project Issuing CA/)) { | ||||
| 	if (match(issuer, /OpenLAN Demo Birth CA/)) { | ||||
| 		ulog(LOG_INFO, 'Certificate type is "Demo" \n'); | ||||
| 		cds_server = 'discovery-qa.open-lan.org'; | ||||
| 		timeouts.expiry_threshold = 3 * 24 * 60 * 60; | ||||
| 	} else if (match(issuer, /OpenLAN Birth Issuing CA/)) { | ||||
| 		ulog(LOG_INFO, 'Certificate type is "Production"\n'); | ||||
| 	} else { | ||||
| 		ulog(LOG_INFO, 'Certificate type is "TIP"\n'); | ||||
| 	} | ||||
|   | ||||
| @@ -16,9 +16,11 @@ function set_est_server() { | ||||
| 	let issuer = pipe.read("all"); | ||||
| 	pipe.close(); | ||||
|  | ||||
| 	if (!match(issuer, /Telecom Infra Project Issuing CA/)) { | ||||
| 	if (match(issuer, /OpenLAN Demo Birth CA/)) { | ||||
| 		ulog(LOG_INFO, 'Certificate type is "Demo" \n'); | ||||
| 		est_server = 'qaest.certificates.open-lan.org:8001'; | ||||
| 	} else if (match(issuer, /OpenLAN Birth Issuing CA/)) { | ||||
| 		ulog(LOG_INFO, 'Certificate type is "Production"\n'); | ||||
| 	} else { | ||||
| 		ulog(LOG_INFO, 'Certificate type is "TIP"\n'); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arif Alam
					Arif Alam