API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ICERTCHAIN

Brew Release
Brew MP 1.0.2
See Also
Usage
To verify a chain:
1) Add root certificates, the server's cert and the intermediate (branch) certs using ICertChain_AddCert() or ICertChain_AddOpt().
2) Call ICertChain_Verify() to find out of the chain is trusted
3) If it's not trusted and you want to override add some CertDataTrustOverride records with ICertChain_AddOpt().
4) Use the ICertParse_GetBasic() function to get the public key if you need it for some function such as encrypting a session key.