Org.BouncyCastle.Pkcs.Pkcs12Store
In-memory PKCS#12 keystore (PFX) as defined in RFC 7292. Loads and saves password-protected bags of
private keys and X.509 certificates. Create instances via Pkcs12StoreBuilder.
Environment variable that, when set to true, suppresses the error raised when
Load is called with a password but the file does not require one.
Gets all aliases in this store (union of certificate and key aliases).
Gets the number of distinct aliases in this store.
Returns true if an entry exists under the given alias.
Removes the entry (certificate and/or key) for the given alias.
Returns the certificate entry for the alias — either a certificate-only entry or the end-entity
certificate associated with a private-key alias.
Finds the alias of the first entry whose certificate equals cert.
Builds the certificate chain for a private-key alias by following Authority Key Identifier
or issuer/subject matching.
Returns the private-key entry for the given alias, or null if not present.
Returns true if the alias refers to a certificate-only entry (no private key).
Returns true if the alias refers to an entry assignable to entryType.
Returns true if the alias refers to a private-key entry.
Loads a PKCS#12 file from a stream, populating this store with keys and certificates.
protected virtual void LoadKeyBag(PrivateKeyInfo privKeyInfo, Asn1Set bagAttributes, ref AsymmetricKeyEntry unmarkedKeyEntry)
protected virtual void LoadPkcs8ShroudedKeyBag(EncryptedPrivateKeyInfo encPrivKeyInfo, Asn1Set bagAttributes, char[] password, bool wrongPkcs12Zero, ref AsymmetricKeyEntry unmarkedKeyEntry)
Writes this store as a PKCS#12 PFX structure to a stream.
Adds or replaces a certificate-only entry under the given alias.
Renames an entry by updating its PKCS#9 friendly name and re-keying internal maps.
Adds or replaces a private-key entry and optional certificate chain under the given alias.