Page 1 of 1

Cert.ImportFrom('Filename')

Posted: Fri 09 Mar 2018 22:40
by wheathoff
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!

Re: Cert.ImportFrom('Filename')

Posted: Mon 12 Mar 2018 15:15
by ViktorV
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.