Last active
August 6, 2018 09:00
-
-
Save vanbo/373acf5da34fa362aeaaa469958696b6 to your computer and use it in GitHub Desktop.
borica-p12-set-password
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
| add_filter( 'wc_borica_certificates_password', 'pref_set_p12_password', 10, 2 ); | |
| function pref_set_p12_password( $default, $password_type ) { | |
| $pass = $default; | |
| if ( 'p12_certificate' == $password_type ) { | |
| // In 'set_your_pass' write any password you want. | |
| // You will use this same password to add the certificate to the browser | |
| $pass = 'set_your_pass'; | |
| } | |
| return $pass; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment