/* Load the certificates in memory depending on compile-time @Parameters certificate Load the certificate @Parameters length Load the certificate length @Returns result true or false  */
bool ICACHE_FLASH_ATTR ssl_set_default_certificate(const uint8 *certificate, uint16 length)
/* Load the certificates in memory depending on compile-time @Parameters certificate Load the certificate @Parameters length Load the certificate length @Returns result true or false  */
bool ICACHE_FLASH_ATTR ssl_set_default_certificate(const uint8 *certificate, uint16 length)
{
	if (certificate == NULL)
		return false;
	def_certificate = (uint8*) zalloc(length);
	if (def_certificate == NULL)
		return false;
	memcpy(def_certificate, certificate, length);
	def_certificate_len = length;
	return true;
}