Open sgreci opened 3 years ago
Same issue for me, but I'm not using a keyfile.
1.- If i pass the password manually it works 2.- If i used the System.Security.SecureString doesn't work and get the same error
PS D:\gdlrayas\GitLab\marco-wintel-scripts> Get-KeePassEntry -DatabaseProfileName 'TEST' -MasterKey $PWord Exception calling "Open" with "3" argument(s): "The composite key is invalid! Make sure the composite key is correct and try again." At C:\Program Files\WindowsPowerShell\Modules\PoShKeePass\2.1.3.0\PoShKeePass.psm1:2664 char:9
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidCompositeKeyException
InvalidDatabaseConnectionException : The database is not open. At C:\Program Files\WindowsPowerShell\Modules\PoShKeePass\2.1.3.0\PoShKeePass.psm1:2669 char:13
+ CategoryInfo : OperationStopped: (InvalidDatabase...se is not open.:String) [], RuntimeException
+ FullyQualifiedErrorId : InvalidDatabaseConnectionException : The database is not open.
I had similar issue. My initial keyfile, I've generated using Format version 2.0(recommended). However, when I've generated new keyfile using Format Version 1.0(compatible with older KeePass version/ports) I was able to use PoShKeePass with keyfile.
Hello, i'm testing PoShKeePass with key files. I've created through the KeePass 2 windows interface a new database and configured the access only with a keyfile.
I created a KeePassDatabaseConfiguration:
and this is the result:
When i try to open the database and read an entry i got this error:
Really don't understand what's going on because from KeePass 2 GUI I can open the database and read/write entries. Here below my versions:
KeePass 2 2.47 PoShKeePass 2.1.3.0