Question: I want to insert new `<li>` element to my function output.

```
function gallery_nav() {
    $i = 0;
    foreach ($myArray as $key ) {
        $i++;
        echo '<li><a href="#">'. $i .'</a></li>';
    }
}

```

It printing this html

```
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>

```

Can i insert custom `<li>` element into this array? Like this:

```
<li>1</li>
<li>2</li>
<li class="custom">3</li>
<li>4</li>
<li>5</li>
<li class="custom">6</li>
<li>7</li>
<li>8</li>
<li>9</li>

```

Answer: 
This is very dirty, but at the top of your script, just put:

`process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';`

This basically tells node to not check SSL certificates, which is very convenient when you get self signed certificates rejected in development.

Please don't use this in production.
Good morning dear.

My problem is the following:

**"Enable to verify the first certificate" with an error code 'ENABLE\_TO\_VERIFY\_LEAF\_SIGNATURE'.**

They sent me a certificate with a .pfx extension and with the following commands I generated the .pem certificate and the key also with a .pem extension.

I attach the commands.

* **openssl pkcs12 -in certificate.pfx -nocerts -out key.pem -nodes**
* **openssl pkcs12 -in certificate.pfx -nokeys -out certificate.pem**

It should be noted that I am using axios to make the request.

I attach my agent configuration in axios.

const httpsAgent = new https.Agent ({  

pfx: fs.readFileSync ("path.pfx"),
passphrase: 'password',
requestCert: true,
rejectUnauthorized: true
});