Cert.ImportFrom('Filename')

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
wheathoff
Posts: 14
Joined: Thu 08 Feb 2018 18:39

Cert.ImportFrom('Filename')

Post by wheathoff » Fri 09 Mar 2018 22:40

Why does Cert.ImportFrom('Filename') try to create directories? It doesn't seem to me like a method should need to create a directory, when all you are doing is asking it to read something. Yet, a recent attempt to use this overload produced an EInOutError exception with the message 'cannot create directores'. Why?

Thanks!

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Cert.ImportFrom('Filename')

Post by ViktorV » Mon 12 Mar 2018 15:15

You can get this error when using TScFileStorage. In this case, SecureBridge tries to save the certificate file to the path specified in the TScFileStorage.Path property. To solve the issue, you can specify the correct path in this property or use the TScMemoryStorage component.

Post Reply