void toDER(char **out, unsigned int *outlen)
void toDER(char **out, unsigned int *outlen, bool publicOnly)
	void toDER(char **out, unsigned int *outlen)	{		int len = i2d_X509(x, NULL);		unsigned char *buf, *p;		buf = (unsigned char *)malloc(len);		p = buf;		i2d_X509(x, &p);		*out = (char *)buf;		*outlen = len;	}