diff --git a/MoppLib/MoppLib/MoppLibDigidocManager.mm b/MoppLib/MoppLib/MoppLibDigidocManager.mm index 530b4f21..9c0371f8 100644 --- a/MoppLib/MoppLib/MoppLibDigidocManager.mm +++ b/MoppLib/MoppLib/MoppLibDigidocManager.mm @@ -216,11 +216,11 @@ int logLevel() const override { } NSString* getSivaCert(NSString *fileName) const { - NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); - NSString *libraryDirectory = [paths objectAtIndex:0]; + NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); + NSString *cachesDirectory = [paths objectAtIndex:0]; NSString *subfolderName = @"siva-cert"; - NSString *subfolderPath = [libraryDirectory stringByAppendingPathComponent:subfolderName]; + NSString *subfolderPath = [cachesDirectory stringByAppendingPathComponent:subfolderName]; NSString *filePath = [subfolderPath stringByAppendingPathComponent:fileName];