Dart-Basic-Utils
Dart-Basic-Utils copied to clipboard
[PKCS12] All certificates in PKCS12 file are tagged with localKeyId
When generating a Pkcs12 file using generatePkcs12 all certificates are getting tagged with the localKeyId. Only the certificate matching the private key should be tagged with the localKeyId. Some implementations, notably Apple's Security Framework (SecPKCS12Import), will ignore any duplicate marked certificates and refuse to import them.