How to use Porkbun SSL Certificate files with NGINX?

Figure out how to use the Porkbun Let's Encrypt files with Nginx. They have generated a zip file with the following files: domain.cert.pem, intermediate.cert.pem, private.key.pem, public.key.pem

If we used the certbot we will get these files: README, cert.pem, chain.pem, fullchain.pem, privkey.pem

So

From what we see, the Porkbun generated files are just renamed and mapped like this:

So we should do this for the files given by Porkbun:

Basically fullchain.pem is just made up of cert.pem + chain.pem concatenated together.

Personally, I would not use their generated ones because you would have to manually replace it every 90 days. Best if you use another option like certbot which lets you automatically renew it or do it 'manually' via some cronjob. Gook luck!