
Also make sure you update the DN information (Country, State, etc.) Create a new key Using openssl to generate HMAC using a binary key.

If you have not already, copy the contents of the example openssl.cnf file above into a file called 'openssl.cnf' somewhere. I've compiled my project against openssl and the following code is generating some key pairs: RSA *keypair = RSA_generate_key(1024, 3, NULL, NULL) BIO *pri = BIO_new(BIO_s_mem()) BIO *pub = BIO_new(BIO_s_mem()) PEM_write_bio_RSAPrivateKey(pri, keypair, NULL, NULL, 0, NULL, NULL) PEM_write_bio_RSAPublicKey(pub, keypair) size_t pri_len = BIO_pending(pri) size_t pub_len = BIO_pending(pub) char *pri_key = malloc(pri_len + 1) char *pub_key = malloc(pub_len + 1) BIO_read(pri. Remember the password to use the key to decrypt the necessary. Use the following command to generate the key bundle.
