bc-csharp
bc-csharp copied to clipboard
P12Store Load .p12 file Error : attempt to add existing attribute with different value
code :
var certificateStore = new Pkcs12Store(certificateStream, password.ToCharArray());
| 名称 | 值 | 类型 | |
|---|---|---|---|
| ▶ | $exception | {"attempt to add existing attribute with different value"} | System.IO.IOException |
the .p12 file , I can successful read this file when I use System.Security.Cryptography.X509Certificates.X509Certificate2,
could anyone helpe me ?
You'd see this if there were multiple attributes associate with an entity in the store that had the different values. It's not really clear how you'd process this though, would need to see an example.
@dghgit it's the apple's signing certification
I got the same exception trying open my p12 certificate file, my pk12 file is good and was used by OpenSsl and other libraries without problem.
Are you able to provide a file that shows the problem?