mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	cloud_discovery: rtrim() the extracted subject
this removes trailing \n\n characters Fixes: WIFI-14694 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -159,6 +159,7 @@ function generate_csr() { | |||||||
| 		let pipe = fs.popen('openssl x509 -in /etc/ucentral/cert.pem -noout -subject'); | 		let pipe = fs.popen('openssl x509 -in /etc/ucentral/cert.pem -noout -subject'); | ||||||
| 		let subject = pipe.read("all"); | 		let subject = pipe.read("all"); | ||||||
| 		pipe.close(); | 		pipe.close(); | ||||||
|  | 		subject = rtrim(subject); | ||||||
| 		subject = replace(subject, 'subject=', '/'); | 		subject = replace(subject, 'subject=', '/'); | ||||||
| 		subject = replace(subject, ' = ', '='); | 		subject = replace(subject, ' = ', '='); | ||||||
| 		subject = replace(subject, ', ', '/'); | 		subject = replace(subject, ', ', '/'); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin