# SSL Error 5

**URL:** <https://forum.sierrawireless.com/t/ssl-error-5/7439>\
**Category:** Legacy AirPrime modules\
**Created:** [September 17, 2014, 12:49pm UTC](https://forum.sierrawireless.com/t/ssl-error-5/7439 "2014-09-17T12:49:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TEKNB](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@TEKNB](https://forum.sierrawireless.com/u/TEKNB)\
**Post date:** [September 17, 2014, 12:49pm UTC](https://forum.sierrawireless.com/t/ssl-error-5/7439/1 "2014-09-17T12:49:53Z")

</div>

We use Fastrack FXT009. We want to send emails with use of SSL connection.

1. Is it neccessary to enable SSL features with AT+WCFM?
2. When we query AT+WCFM=5 answer is +WCFM: 000007F1,0. What does this mean?
3. We want to send mails. So we are a client in the sense of SMTP. In wip\_SSLInitOpts() there is the parameter WIP\_COPT\_CERT\_AUTHORITY. In the comments it is called “ca certificate”. What sort of certificate is behind this parameter? Where does one get such a certificate?  
Also there is the parameter WIP\_COPT\_CERT. In the comments it is called “client certificate”. What sort of certificate is behind this parameter? Where does one get such a certificate?
4. After wip\_SSLInitOpts() and wip\_SSLClientCreate() the used handler is called back with error 5. What does that mean?
5. Is there any list for the errors of wip\_SSLClientCreate()? In the documentation (SSL\_UGD.pdf) there seams to be no error codes for nearly all SSL-related functions.
6. Does anyone have a functional, generally valid example for using SMTP with SSL (i.e. send a mail) and wants to share it with the community? POP3 would be great, too!

---

<div class="post-metadata">

**Author:** ![Rex\_alex](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rex\_alex](https://forum.sierrawireless.com/u/Rex_alex)\
**Post date:** [September 24, 2014, 11:02am UTC](https://forum.sierrawireless.com/t/ssl-error-5/7439/2 "2014-09-24T11:02:05Z")

</div>

Hi,

I dont have the examples for SMTP and POP… but regarding few of your questions :

what i know is that these certificates and keys are stored as string format… for example… u can see in the sdk sample applications wipssl\_client… it is defined in the keys folder… in that sample…

regarding the error… yeah it’s strange… its not mentioned anywhere/… i’ll check this internally… but what are you trying to do… the complete process is mentioned int he SSL\_UGD guide on how to initialize and use SSL…

For getting the certifictes… not much idea… but from the server admin… which ever server you are connecting to… i think browser do have some certificates… i need to double check on this…

AT+WCFM=5 will give some obsolete modes… _written in guide_… the returned value should not be taken into account…

---

<div class="post-metadata">

**Author:** ![TEKNB](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@TEKNB](https://forum.sierrawireless.com/u/TEKNB)\
**Post date:** [September 25, 2014, 11:43am UTC](https://forum.sierrawireless.com/t/ssl-error-5/7439/3 "2014-09-25T11:43:06Z")

</div>

Thanks for answer.

In other posts there is mentioned that the SSL library probably has to be enabled as “commercial feature” by means of a password provided by a distributer. What about that?

We found, that the format of the key has to be a text string in base64. So far we have found an answer to our third question. Some hints to this fact would be nice to read in the manual. You wrote “the complete process is mentioned int he SSL\_UGD guide on how to initialize and use SSL.” If it so where it would be nice, but the description of this process is in the most - poor.

Important for us to know is really the meaning of the error. Probably this would help us a lot!

Your hints concerning AT+WCFM=5 are somehow cryptic. Obsolete modes? Written in guide? What do You want to say with that?

Another question that we have is, whether Sierra Wireless has functions for OpenAT to encrypt files. Encryption functions must be invoked in the SSL library since with SSL one has to encrypt data anyhow. We think of PGP, i.e. OpenPGP or GnuPG. We think that in future there may be a great need for such functions, think of Snowden…

---

<div class="post-metadata">

**Author:** ![Rex\_alex](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rex\_alex](https://forum.sierrawireless.com/u/Rex_alex)\
**Post date:** [September 30, 2014, 1:02pm UTC](https://forum.sierrawireless.com/t/ssl-error-5/7439/4 "2014-09-30T13:02:27Z")

</div>

Hi…

I’ll create a documentation tracker with R&D to clarify the meaning. But, what i got is that this error comes if the clock is not set properly or the CA certificate is wrong…

Did you try with the ssl sample… just initializing using ssl\_initopts and creating a ssl client using ssl\_clientcreateopts…  
which server are you trying to connect to?

make sure the CA certificate is correct.

also at+cclk should be synchronised…

---

<div class="post-metadata">

**Author:** ![Rex\_alex](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rex\_alex](https://forum.sierrawireless.com/u/Rex_alex)\
**Post date:** [September 30, 2014, 1:28pm UTC](https://forum.sierrawireless.com/t/ssl-error-5/7439/5 "2014-09-30T13:28:15Z")

</div>

this can be useful i guess…

[http://developer.sierrawireless.com/Resources/Resources/AirPrime/Application\_Notes\_and\_Code\_Samples/AirPrime\_-_SMTP\_over\_SSL_-\_Application\_Note.aspx](http://developer.sierrawireless.com/Resources/Resources/AirPrime/Application_Notes_and_Code_Samples/AirPrime_-SMTP_over_SSL-_Application_Note.aspx)

---

<div class="post-metadata">

**Author:** ![Rex\_alex](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rex\_alex](https://forum.sierrawireless.com/u/Rex_alex)\
**Post date:** [October 1, 2014, 10:54am UTC](https://forum.sierrawireless.com/t/ssl-error-5/7439/6 "2014-10-01T10:54:29Z")

</div>

hi,  
I have raised a documentation tracker for this.

WCFM return value indicates…  
7 (0111) -\> Application Watchdog, Raw Spectrum Information, crypto are activated  
F (1111) -\> SSL, C-GPS, OpenSIMAccess, RTOS are activated  
1 (0001) -\> Internet plug-in activated.

Regards,  
rex

---

<div class="post-metadata">

**Author:** ![mandy](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mandy](https://forum.sierrawireless.com/u/mandy)\
**Post date:** [October 29, 2014, 11:45am UTC](https://forum.sierrawireless.com/t/ssl-error-5/7439/7 "2014-10-29T11:45:54Z")

</div>

Hello TEKNB,

did you solved the problem to use a SMTP server or POP3 server with SSL connection?  
I’ve got now the same prolem, that the SSL connection returns error code 5 after calling ‘wip\_SSLClientCreate’.

Regards,  
Mandy

---

<div class="post-metadata">

**Author:** ![TEKNB](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@TEKNB](https://forum.sierrawireless.com/u/TEKNB)\
**Post date:** [November 17, 2014, 10:32am UTC](https://forum.sierrawireless.com/t/ssl-error-5/7439/8 "2014-11-17T10:32:20Z")

</div>

We didn’t solve the problem yet. We are awaiting a solution from Sierra Wireless…
