A sample public/private key can be found in Bug #8629.
To convert to PKCS #12 format, the following should work:
openssl pkcs12 -export -in <file with public key> -inkey <file with private key> -out smime.p12