# Getting error while trying to create Clientssl Profile

**URL:** <https://community.f5.com/t/getting-error-while-trying-to-create-clientssl-profile/10795>\
**Category:** Technical Forums\
**Created:** [July 14, 2015, 2:22pm UTC](https://community.f5.com/t/getting-error-while-trying-to-create-clientssl-profile/10795 "2015-07-14T14:22:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dipta\_03\_149731](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dipta\_03\_149731](https://community.f5.com/u/dipta_03_149731)\
**Post date:** [July 14, 2015, 2:22pm UTC](https://community.f5.com/t/getting-error-while-trying-to-create-clientssl-profile/10795/1 "2015-07-14T14:22:43Z")

</div>

I have extracted cert and key in pem format from pfx file and imported them to F5.

Now when i try to create Clientssl profile I get below error:

01070313:3: Error reading key PEM file /config/ssl/ssl.key/CERT\_SBWEB\_INTERNAL.key for profile PROFILE\_SBWEB\_INTERNAL: error:0906700D:PEM routines:PEM\_ASN1\_read\_bio:ASN1 lib

What can I check for this?

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [July 14, 2015, 2:27pm UTC](https://community.f5.com/t/getting-error-while-trying-to-create-clientssl-profile/10795/2 "2015-07-14T14:27:19Z")

</div>

Did you export the cert and key from pfx with or without a passphrase on the key?

What platform are you running? On 11.x platforms you can import directly from pkcs12.

---

<div class="post-metadata">

**Author:** ![dipta\_03\_149731](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dipta\_03\_149731](https://community.f5.com/u/dipta_03_149731)\
**Post date:** [July 15, 2015, 11:24am UTC](https://community.f5.com/t/getting-error-while-trying-to-create-clientssl-profile/10795/3 "2015-07-15T11:24:47Z")

</div>

Thanks for replying Kevin. Its a old version device 9.4.x so I had to run different set of open ssl commands to extract the pem file sfrom pfx and then imported to the device and it worked fine.

openssl pkcs12 -nocerts -out sbwebkeys.pem -in ime\_sbweb\_f5\_cert/ export.pfx openssl pkcs12 -in ime\_sbweb\_f5\_cert\ export.pfx -nocerts -out sbwebkeys.pem
