Changed Tls_NewX509Obj to not use stack space for all and certificate buffers.
This reduces the possibility of a stack overflow.