A sample public/private key can be found in [http://bugs.horde.org/ticket/8629 Bug #8629].
To convert to PKCS #12 format, the following should work:
openssl pkcs12 -export -in -inkey -out smime.p12