Skip to content

Instantly share code, notes, and snippets.

@vanbo
Last active August 6, 2018 09:00
Show Gist options
  • Select an option

  • Save vanbo/373acf5da34fa362aeaaa469958696b6 to your computer and use it in GitHub Desktop.

Select an option

Save vanbo/373acf5da34fa362aeaaa469958696b6 to your computer and use it in GitHub Desktop.
borica-p12-set-password
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