ctrtool can do it.I think I remember seeing a tool that would give you keys from a cia but I don't remember which...
or FunkyCIA.
--------------------- MERGED ---------------------------
if you use -preinstalled, like you need to to dump from preinstalled tickets, it will work fine.Hmm, it looks like you can extract your ticket.db with FunkeyCIA but not extract the ticket from CIA you already have on your computer, is that right? No problem, I think I will install all the legit CIA on a 3DS, and then use FunkyCIA to get the tickets for later use/to share - maybe I'll be the first to upload them :-)
use the cia as instead instead of the ticket.db
but ctrtool is good too if you have it