Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/a/n/Anomos-HEAD/Anomos/track.py   Anomos(Download)
 
    Anomos.Crypto.init(config['data_dir'])
    servercert = Anomos.Crypto.Certificate(loc="server", tracker=True, ephemeral=False)
    e = EventHandler()
    t = Tracker(config, servercert, e.schedule)

src/a/n/Anomos-HEAD/anontrack.py   Anomos(Download)
 
    Anomos.Crypto.init(config['data_dir'])
    servercert = Anomos.Crypto.Certificate(loc="server", tracker=True, ephemeral=False)
    t = Tracker(config, servercert, reactor.callLater)
    t.natchecker.reactor = reactor

src/a/n/Anomos-HEAD/Anomos/download.py   Anomos(Download)
        # identities to different trackers.
        if self.config['identity'] not in ['', None]:
            self.certificate = Anomos.Crypto.Certificate(loc=self.config['identity'], \
                                                          ephemeral=False)
            self.post_certificate_load()
    def gen_cert(self):
        self.certificate = Anomos.Crypto.Certificate(ephemeral=True)
        self.post_certificate_load()
 
    def post_certificate_load(self):
                    if self.trackers[aurl][1] is None:
                        log.info("Generating a new certificate")
                        self.trackers[aurl][1]= Anomos.Crypto.Certificate(ephemeral=True)
                        self.trackers[aurl][2]= Anomos.Crypto.get_rand(8)
                        self.trackers[aurl][3]= self.trackers[aurl][1].get_ctx(allow_unknown_ca=True)

src/a/n/Anomos-HEAD/tests/FakePeer.py   Anomos(Download)
    def __init__(self):
        self.cert = Anomos.Crypto.Certificate(ephemeral=True)
        self.ctx = self.cert.get_ctx(allow_unknown_ca=True)
        self.ctx.set_cipher_list('HIGH:!ADH:!MD5:@STRENGTH')
        self.sock = None