danb35
Hall of Famer
- Joined
 - Aug 16, 2011
 
- Messages
 - 15,504
 
The fundamental issue is that Unifi, like other Java software, can't deal with PEM-encoded certificates and keys directly--they have to be converted into a different format.  So there are two things that need to be done:
	
		
			
		
		
	
			
			- Get the cert, and
 - Convert/import the cert
 
Code:
export CF_Key="sdfsdfsdfljlbjkljlkjsdfoiwje" export CF_Email="xxxx@sss.com" acme.sh --issue --dns dns_cf -d unifi.yourdomain.tld --reloadcmd /path/to/deploy.sh