fix mem leak
add tool support for multiple identities in p12