Boris Zbarsky schrieb: > I'm looking into serializing and deserializing principals, and to do this for > certificate principals I would need to be able to save out an > nsNSSCertificate. > This means saving a CERTCertificate, in addition to various other things > that > I think I know how to save out. > > Is there a way to serialize and deserialize CERTCertificate objects? >
I think you can use nsNSSCertificate::GetRawDER which gives you a full binary encoding of the cert. You should be able to use nsNSSCertificate::ConstructFromDER to create the data structure from the binary DER encoding. Kai _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto