Question: I should have paid more attention to my classes that covered security. I'm quite confused about something. To start, here's the background of what I'm trying to accomplish. 

I have a web service that I need to access. The web service is set up as HTTPS. The traffic between client and server is encrypted (this doesn't have to do with authentication).

I'm interacting with the web service via cURL and PHP. I've gotten an example to work locally over HTTP and I'm fairly confident I'm on the right track with regards to cURL/PHP side of things. 

When using the HTTP version of the code to access a web service over HTTPS, I am getting an `error code 60 "SSL certificate problem, verify that the CA cert is OK" (error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed)`

From my reading, it seems that I need a PEM file and I need to set additional cURL options such as the following: 

* CURLOPT\_CAINFO
* CURLOPT\_SSLCERT
* CURLOPT\_SSLKEYPASSWD

My question is **how do I know where to get the PEM file or whether I can simply make it?** This is probably going to be an obvious answer as I'm sure I'm missing something but I figure I just need to ask and get the background I'm missing.

*Amendment*: The web service is using a certificate signed by VeriSign. So it's not a self signed certificate. Also, the web service is owned and operated by an external organization. 

Thanks.

Answer: 
I changed the external-library-path to only include the airglobal.swc and that got me past this error.

```
<compiler.external-library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
   <include name="airglobal.swc" />
</compiler.external-library-path>

```

I think including the entire air folder as an external library was causing the a bunch of .swc to be omitted from linking.
I had a similiar problem in FlashDevelop, where app builded ok but in the runtime there was "error 1014: spark components Application not found".

Your answer about changing external library paths helped me pinpoint the problem. Basically, I removed paths from Project options -> tab Compiler Options, and left only:

```
Intrinsic Libraries: Library\AS3\frameworks\Flex4

```

And inside SWC libraries I left any other third party libraries I'm using. Also there is a FLVPlayback.swc (compiled inside Flash CS), for using FLVPlayback inside AS3 code. In this way I can use this Flex/Spark component inside normal AS3 application.