diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2017-01-17 14:33:59 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2017-01-18 16:43:45 +0000 |
commit | a6228556a27afb5f22af5a984d756b7d87e752df (patch) | |
tree | f5523bdb3a78fe5511a37ab21ccc3837c81ac203 /src/crypto-lib | |
parent | ee3adbbb950ce8db4bfc1ddcf921da4ef44a5981 (diff) | |
download | qtapplicationmanager-a6228556a27afb5f22af5a984d756b7d87e752df.tar.gz |
wincrypt: Open the certstore with PKCS12_NO_PERSIST_KEY
On Windows7 opening the certstore doesn't work otherwise
Change-Id: Ib1cbc601d17acb00dcb45a276b537552f314899e
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'src/crypto-lib')
-rw-r--r-- | src/crypto-lib/signature_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto-lib/signature_win.cpp b/src/crypto-lib/signature_win.cpp index 1ff9451b..b23ee1ce 100644 --- a/src/crypto-lib/signature_win.cpp +++ b/src/crypto-lib/signature_win.cpp @@ -86,7 +86,7 @@ QByteArray SignaturePrivate::create(const QByteArray &signingCertificatePkcs12, certStore = PFXImportCertStore(&pkcs12Blob, reinterpret_cast<const wchar_t *>(password.utf16()), - CRYPT_EXPORTABLE); + PKCS12_NO_PERSIST_KEY); if (!certStore) throw WinCryptException("could not read or not parse PKCS#12 certificate"); |