To get what I needed (using openssl) I did the following:
1 Generate Private Key
openssl genrsa -out private_key 1024
2 Export Public Key
openssl rsa -in private_key -pubout -out public_key
3 Export Public Key in DER format, which seems to be in the ASN.1 format I needed.
openssl rsa -outform der -pubin -in public_key -pubout -out public_key.asn1
To decrypt the passkey sent back from minecraft client
openssl rsautl -decrypt -inkey private_key -in encrypted_data_in -out data_out
Hope that helps someone. :)