fix pkcs12 on android

This commit is contained in:
TuxCoder 2020-05-10 16:54:43 +02:00
parent 04110a73ed
commit 88d1eed90e
3 changed files with 3 additions and 3 deletions

View file

@ -109,7 +109,7 @@ window.client_cert = {
var keypair = form.data('keypair'); var keypair = form.data('keypair');
var p12Asn1; var p12Asn1;
if (password == '') { if (password == '') {
p12Asn1 = pkcs12.toPkcs12Asn1(keypair.privateKey, certs, null); // without password p12Asn1 = pkcs12.toPkcs12Asn1(keypair.privateKey, certs, null, {algorithm: '3des'}); // without password
} else { } else {
p12Asn1 = pkcs12.toPkcs12Asn1(keypair.privateKey, certs, password, {algorithm: '3des'}); // without password p12Asn1 = pkcs12.toPkcs12Asn1(keypair.privateKey, certs, password, {algorithm: '3des'}); // without password
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long