Updated key ID generation to use standard ASN1 encoding

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)