Hey Guys,
I was generating a self-signed certificate as explained by the manuals on Ubuntu with Netbeans
When I used:
byte certDer[4096];
bzero(&certDer, sizeof(certDer));
certSize = wc_MakeSelfCert(&cert, certDer, sizeof(certDer), &rsaKey, &rng);
I received a runtime Segfault on the wc_MakeSelfCert function.
The error was resolved by declaring certDer as certDer[4097].
When printing the contents of the 4097th byte in the array I receive the hex value 14.
Am I missing something here or is there an extra byte filled up in the function somewhere?
Thanks in advance!
Midas