printf("Setting certificates.\n");
const u8 *certs[4] = {ticket_cert, ticket_rootca};
u32 sizes[4] = {sizeof(ticket_cert), sizeof(ticket_rootca)};
if ((res = AM_SetCertificates(2, certs, sizes)) != 0)
{
printf("Error setting certificates: 0x%08X\n", res);
return;
}