Windows 10: CryptAcquireCertificatePrivateKey gets a handle to something that knows both the private...

Discus and support CryptAcquireCertificatePrivateKey gets a handle to something that knows both the private... in Windows 10 Gaming to solve the problem; Hello, CryptAcquireCertificatePrivateKey with the flag CRYPT_ACQUIRE_ONLY_NCRYPT_KEY_FLAG gets a handle NCRYPT_KEY_HANDLE to a certificate's private... Discussion in 'Windows 10 Gaming' started by mterrisse, Feb 15, 2023.

  1. mterrisse Win User

    CryptAcquireCertificatePrivateKey gets a handle to something that knows both the private...


    Hello, CryptAcquireCertificatePrivateKey with the flag CRYPT_ACQUIRE_ONLY_NCRYPT_KEY_FLAG gets a handle NCRYPT_KEY_HANDLE to a certificate's private key.In the documentation https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptacquirecertificateprivatekey you can read:"The CryptAcquireCertificatePrivateKey function obtains the private key for a certificate".But I found out that we get a handle to something that knows both the private key and the public key, and if I encrypt something with this handle NCryptEncrypt, it encrypts with the public key and not the privat

    :)
     
    mterrisse, Feb 15, 2023
    #1

  2. Change Network from Public to Private

    Hi,

    Thank you for your interest in Windows 10.

    I suggest you to follow the steps below to
    change your network from Public to Private:


    • Type PowerShell in Search Window and then right click on it and click on
      Run as Administrator.

    • Type the following command to find your interface Index:
      Get-NetConnectionProfile

    • Use your interface index (for example 5) with this command:
      Set-NetConnectionProfile -InterfaceIndex 5 -NetworkCategory Private

    • Now reboot the device and check if the network has changed from Public to Private.
    Hope this information is helpful. Please do let us know if you need further assistance, we’ll be glad to assist you.
     
    Giridhar J, Feb 15, 2023
    #2
  3. Ryan Fra Win User
    Windows HomeGroups and Xfinity Private Networks

    Hi Gene,

    Thank you for sharing the outcome when you followed the steps on how to create a HomeGroup. Please follow these steps to change the network profile to Private:

    • Left click on the Wi-Fi icon at the bottom right side of the screen, near the clock.
    • Left click on Properties below your network name.
    • Under Network profile, change it to Private.
    • Create a HomeGroup again.

    Please let us know if you need further assistance.
     
    Ryan Fra, Feb 15, 2023
    #3
  4. Stud_1946 Win User

    CryptAcquireCertificatePrivateKey gets a handle to something that knows both the private...

    How to change the network setting (Private, public, etc)

    this answer from a different Microsoft page worked for me

    CryptAcquireCertificatePrivateKey gets a handle to something that knows both the private... [​IMG]
    Giridhar
    J
    replied on

    • Microsoft

    Accomplishments

    • Microsoft

    Hi,

    Thank you for your interest in Windows 10.

    I suggest you to follow the steps below to
    change your network from Public to Private:


    • Type PowerShell in Search Window and then right click on it and click on
      Run as Administrator.

    • Type the following command to find your interface Index:
      Get-NetConnectionProfile

    • Use your interface index (for example 5) with this command:
      Set-NetConnectionProfile -InterfaceIndex 5 -NetworkCategory Private

    • Now reboot the device and check if the network has changed from Public to Private.
    Hope this information is helpful. Please do let us know if you need further assistance, we’ll be glad to assist you.
     
    Stud_1946, Feb 15, 2023
    #4
Thema:

CryptAcquireCertificatePrivateKey gets a handle to something that knows both the private...

Loading...
  1. CryptAcquireCertificatePrivateKey gets a handle to something that knows both the private... - Similar Threads - CryptAcquireCertificatePrivateKey gets handle

  2. I get a BSOD with error code expected thread not handled but both my rams are alright it's...

    in Windows 10 Gaming
    I get a BSOD with error code expected thread not handled but both my rams are alright it's...: How to fix it https://answers.microsoft.com/en-us/windows/forum/all/i-get-a-bsod-with-error-code-expected-thread-not/a786e2c5-ea8b-4433-8e1a-3ec6f6cc3020
  3. I get a BSOD with error code expected thread not handled but both my rams are alright it's...

    in Windows 10 Software and Apps
    I get a BSOD with error code expected thread not handled but both my rams are alright it's...: How to fix it https://answers.microsoft.com/en-us/windows/forum/all/i-get-a-bsod-with-error-code-expected-thread-not/a786e2c5-ea8b-4433-8e1a-3ec6f6cc3020
  4. I get a BSOD with error code expected thread not handled but both my rams are alright it's...

    in Windows 10 BSOD Crashes and Debugging
    I get a BSOD with error code expected thread not handled but both my rams are alright it's...: How to fix it https://answers.microsoft.com/en-us/windows/forum/all/i-get-a-bsod-with-error-code-expected-thread-not/a786e2c5-ea8b-4433-8e1a-3ec6f6cc3020
  5. CryptAcquireCertificatePrivateKey fails to retrieve the private key for certificate listed...

    in Windows 10 Gaming
    CryptAcquireCertificatePrivateKey fails to retrieve the private key for certificate listed...: //Open Local Machine store NCRYPT_KEY_HANDLE hKey = 0; PCCERT_CONTEXT pCertContext = NULL; HCERTSTORE hCertStore = NULL; DWORD dwKeySpec; BOOL bCallerFreeProv; hCertStore = CertOpenStoreCERT_STORE_PROV_SYSTEM, 0, NULL, CERT_SYSTEM_STORE_LOCAL_MACHINE, L"My";...
  6. CryptAcquireCertificatePrivateKey fails to retrieve the private key for certificate listed...

    in Windows 10 Software and Apps
    CryptAcquireCertificatePrivateKey fails to retrieve the private key for certificate listed...: //Open Local Machine store NCRYPT_KEY_HANDLE hKey = 0; PCCERT_CONTEXT pCertContext = NULL; HCERTSTORE hCertStore = NULL; DWORD dwKeySpec; BOOL bCallerFreeProv; hCertStore = CertOpenStoreCERT_STORE_PROV_SYSTEM, 0, NULL, CERT_SYSTEM_STORE_LOCAL_MACHINE, L"My";...
  7. CryptAcquireCertificatePrivateKey gets a handle to something that knows both the private...

    in Windows 10 Software and Apps
    CryptAcquireCertificatePrivateKey gets a handle to something that knows both the private...: Hello, CryptAcquireCertificatePrivateKey with the flag CRYPT_ACQUIRE_ONLY_NCRYPT_KEY_FLAG gets a handle NCRYPT_KEY_HANDLE to a certificate's private key.In the documentation...
  8. Private, Public or both? - Logitech G HUB

    in Windows 10 Ask Insider
    Private, Public or both? - Logitech G HUB: [ATTACH] submitted by /u/LilBluCommi [link] [comments] https://www.reddit.com/r/Windows10/comments/hygqma/private_public_or_both_logitech_g_hub/
  9. Can both computers have a PIN and share data on private network?

    in Windows 10 Network and Sharing
    Can both computers have a PIN and share data on private network?: I have 2 laptops and want to share data between them. They are both w10 1803. Can I use a PIN on both and share data or does one need to have a password set? Also when I right click a folder I don't see a SHARE option. Am I going nuts? 125614
  10. i need to know something

    in Windows 10 Graphic Cards
    i need to know something: so hi everyone here is what i want to learn Screenshot and Screenshot these are screenshots of my graphic cards when i look into directx recognition window when i enter 'dxdiag' in search can anyone tell me what is my graphic cards memory in gb? 62437