Added pubkey support

Signed-off-by: John Miguel Villar Zavatti <johnvillarzavatti@gmail.com>