Generate key/cert in addfriend task