# Problems adding SSL certs through iControl

**URL:** <https://community.f5.com/t/problems-adding-ssl-certs-through-icontrol/8278>\
**Category:** Technical Forums\
**Tags:** icontrol, dev, devops\
**Created:** [June 7, 2006, 10:07am UTC](https://community.f5.com/t/problems-adding-ssl-certs-through-icontrol/8278 "2006-06-07T10:07:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_McMahon\_2](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Aaron\_McMahon\_2](https://community.f5.com/u/Aaron_McMahon_2)\
**Post date:** [June 7, 2006, 10:07am UTC](https://community.f5.com/t/problems-adding-ssl-certs-through-icontrol/8278/1 "2006-06-07T10:07:52Z")

</div>

I’m uploading an SSL certificate and a key separately using the “upload\_file()” command. That works fine.

But when I use “certificate\_import\_from\_file()”, I get a faultcode response from the server with this error\_string:

PEM routines:PEM\_read\_bio:no start line

The primary\_error\_code is -7.

This same error occurs on both the .crt and .key files (the latter uses the key\_import\_from\_file(), of course). At first, I had been base64 encoding the files until I opened them in a text editor and noticed they already were base64 encoded. So I tried sending them straight through without encoding during the upload process, then running the import commands. Exact same error.

Any ideas?

Thanks…

- Aaron

---

<div class="post-metadata">

**Author:** ![Joe\_Pruitt](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/joe_pruitt/32/8438_2.png) [@Joe\_Pruitt](https://community.f5.com/u/Joe_Pruitt)\
**Post date:** [June 13, 2006, 11:18pm UTC](https://community.f5.com/t/problems-adding-ssl-certs-through-icontrol/8278/2 "2006-06-13T23:18:37Z")

</div>

Are your certificates in PEM format?

This is from the Local Traffic Configuration Guide for BIG-IP v9.2.2

Importing keys, certificates, and archives

If you have transferred a key/certificate pair, a certificate, or a key/certificate archive onto the LTM system from another system, and the certificate or archive is in the form of a file or a base-64 encoded text string, you can import this certificate or archive into the Configuration utility. By importing a certificate or archive into the Configuration utility, you ease the task of managing that certificate or archive. You can use the Import SSL Certificates and Keys screen only when the certificate you are importing is in Privacy Enhanced Mail (PEM) format.

From the looks of your error message, the input format is incorrect. If I were you I’d try to get the import working from the GUI first. There may be some more error reporting in there. If all else fails, F5 Product Technical Support could probably help you out.

-Joe
