A Pen by abeldebruijn on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Previamente convertir ceritificado .p12 o pfx a .key.pem y .crt.pem: | |
* | |
* openssl pkcs12 -in ciar.pfx -out cia.key.pem -nocerts -nodes | |
* openssl pkcs12 -in ciar.p12 -out ciar.crt.pem -clcerts -nokeys | |
* | |
**/ | |
$CERT_CRT_PEM = 'certificado.crt.pem'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
/* This method is to match two input elements */ | |
jQuery.validator.addMethod("match", function(value, element, options) { | |
if (value === $(options).val()) { | |
return true; | |
} else { | |
return false; | |
} |