Toggen Blog

Tech tips

Articles

Latest

Access

Blog History

Nginx Certificate Installation from PFX File

https://gist.github.com/junxy/2464633f27345fbe6a98 # if your pfx file is yourdomain.com.pfx # split the name up so you can have a descriptive # cert and key name OUT=yourdomain.com PFX=.pfx # create pem fromat certs from pfx fiiles # and a decrypted key openssl pkcs12...

CakePHP 2.x Validating Forms without a Database Model

I have a CakePHP form that I need to validate but the form fields don't equate to anything in a database table or model. To get it to work I create a dummy 'Model' using ClassRegistry::init, attach all the necessary validation rules, set the POST data from the form to...