# How do I create SSL certificates, that can be for TCPPERM with OpenSSL command line tool?

**URL:** <https://forums.digi.com/t/how-do-i-create-ssl-certificates-that-can-be-for-tcpperm-with-openssl-command-line-tool/17267>\
**Category:** Digi TransPort WR (Series)\
**Tags:** ssl, wr31\
**Created:** [August 18, 2016, 7:58am UTC](https://forums.digi.com/t/how-do-i-create-ssl-certificates-that-can-be-for-tcpperm-with-openssl-command-line-tool/17267 "2016-08-18T07:58:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mortent](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@mortent](https://forums.digi.com/u/mortent)\
**Post date:** [August 18, 2016, 7:58am UTC](https://forums.digi.com/t/how-do-i-create-ssl-certificates-that-can-be-for-tcpperm-with-openssl-command-line-tool/17267/1 "2016-08-18T07:58:10Z")

</div>

I would like to set up a tool chain, where I use the OpenSSL command line to generate certificates (public and private), that can be used with the TCPPERM application.

The certificates i generate using:  
openssl genrsa -out privcert.pem 2048  
openssl rsa -in privcert.pem -privout -out pubcert.pem

Yield this in the log:  
Certificate Code Error  
Lib: SSL routines  
Func: SSL\_CTX\_use\_certificate\_file  
Reason: BUF lib

---

<div class="post-metadata">

**Author:** ![bengartland](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bengartland](https://forums.digi.com/u/bengartland)\
**Post date:** [August 18, 2016, 8:30am UTC](https://forums.digi.com/t/how-do-i-create-ssl-certificates-that-can-be-for-tcpperm-with-openssl-command-line-tool/17267/2 "2016-08-18T08:30:45Z")

</div>

The cert/key must be named as follows when placed on the router flash:  
Private key = privxxx.pem  
Public cert = certxxxx.pem  
CA cert = caxxxx.pem  
where xxxx can be 0-4 alpha numeric characters.

Regards,  
Ben
