m2crypto loading cert file from memory buffer
started using m2crypto recently, it works pretty well by now, i just
have one question:
ctx = SSL.Context('sslv3')
anyone knows a way of loading cert file from memory buffer and not
from a file?
i just do not want to have my cert file in the directory of my app
that anyone can get.
Re: m2crypto loading cert file from memory buffer
> ctx = SSL.Context('sslv3')
> anyone knows a way of loading cert file from memory buffer and not
> from a file?
Yeah, see for example how I did it for Chandler:
(the loadCertificatesToContext function). You just need an SSL.Context,
get_cert_store() from it, and call the store's add_x509() for each cert.
> i just do not want to have my cert file in the directory of my app
> that anyone can get.
Typically certificates are public, for example all of your peers will
get the certificate anyway, so I don't see this as a problem. Your
private key is what you want to protect. Just make sure it is not
concatenated to your certificate file and there would probably be no
problem leaving the cert file publicly available.
Heikki Toivonen - http://heikkitoivonen.net/blog/
|All times are GMT. The time now is 11:21 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.