# How to generate private keys and certificates for Android (SOLVED)

**URL:** <https://forum.defold.com/t/how-to-generate-private-keys-and-certificates-for-android-solved/5902>\
**Category:** Questions\
**Created:** [March 4, 2017, 3:53pm UTC](https://forum.defold.com/t/how-to-generate-private-keys-and-certificates-for-android-solved/5902 "2017-03-04T15:53:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjames171](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/benjames171/32/34759_2.png) [@benjames171](https://forum.defold.com/u/benjames171)\
**Post date:** [March 4, 2017, 3:53pm UTC](https://forum.defold.com/t/how-to-generate-private-keys-and-certificates-for-android-solved/5902/1 "2017-03-04T15:53:05Z")

</div>

Is there an up-to-date manual on generating private keys and certificates for Android?

I’ve followed the existing manual [here](http://www.defold.com/manuals/android/#_creating_certificates_and_keys) but get the following error upon issuing the second command in the list of 4.

`> openssl req -new -key key.pem -out request.pem Unable to load config info from /usr/local/ssl/openssl.cnf`

---

<div class="post-metadata">

**Author:** ![benjames171](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/benjames171/32/34759_2.png) [@benjames171](https://forum.defold.com/u/benjames171)\
**Post date:** [March 4, 2017, 4:32pm UTC](https://forum.defold.com/t/how-to-generate-private-keys-and-certificates-for-android-solved/5902/2 "2017-03-04T16:32:58Z")

</div>

Never mind. I found the solution was to set an environment variable thus:

`> set OPENSSL_CONF=<path>/openssl.cnf`

🙂
