crypto.X509Store load_locations() do nothing

Viewed 22

I want to add trusted certificates from directory. I tried to use:

store = crypto.X509Store()
store.load_locations(None, ".\\certificates")

and then

context = crypto.X509StoreContext(self.store, cert)

where cert is my certificate which I want to verify.

It does completely nothing. I tried to open this directory. I worked. I read those certificates. It worked too. But when I was trying verify my cert by context.verify_certificate() it failed. What do I wrong?

0 Answers
Related