Load Private Key Only By Company Signed Application
up vote
0
down vote
favorite
For my applications, I have a private key stored using the Windows CNG functions, but I don't have a way to ensure when the applications communicate that the messages are from my applications. I need is a way for me to only allow the private key stored in the CNG to be loaded when the applications are signed by me. What are the CNG functions to use for that behaviour?
c++ security winapi cng
add a comment |
up vote
0
down vote
favorite
For my applications, I have a private key stored using the Windows CNG functions, but I don't have a way to ensure when the applications communicate that the messages are from my applications. I need is a way for me to only allow the private key stored in the CNG to be loaded when the applications are signed by me. What are the CNG functions to use for that behaviour?
c++ security winapi cng
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
For my applications, I have a private key stored using the Windows CNG functions, but I don't have a way to ensure when the applications communicate that the messages are from my applications. I need is a way for me to only allow the private key stored in the CNG to be loaded when the applications are signed by me. What are the CNG functions to use for that behaviour?
c++ security winapi cng
For my applications, I have a private key stored using the Windows CNG functions, but I don't have a way to ensure when the applications communicate that the messages are from my applications. I need is a way for me to only allow the private key stored in the CNG to be loaded when the applications are signed by me. What are the CNG functions to use for that behaviour?
c++ security winapi cng
c++ security winapi cng
asked Nov 19 at 14:20
JadziaMD
1,12022139
1,12022139
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
There isn't. Windows' security model is based around users and groups being given permission to do things and access to resources, individual applications/processes do not generate security tokens (where identifying information is stored) of their own, they inherit an existing token.
That is not what I'm asking about. I'm asking about loading/opening a private key, not about opening it in something like notepad. Windows will not show the actual private key in a text editor, the only way to get the private key is to load it. From looking at the CNG API it appears that anyone who knows the name of the private key can open it. This is what I'm wanting to prevent.
– JadziaMD
Nov 20 at 7:58
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
There isn't. Windows' security model is based around users and groups being given permission to do things and access to resources, individual applications/processes do not generate security tokens (where identifying information is stored) of their own, they inherit an existing token.
That is not what I'm asking about. I'm asking about loading/opening a private key, not about opening it in something like notepad. Windows will not show the actual private key in a text editor, the only way to get the private key is to load it. From looking at the CNG API it appears that anyone who knows the name of the private key can open it. This is what I'm wanting to prevent.
– JadziaMD
Nov 20 at 7:58
add a comment |
up vote
0
down vote
There isn't. Windows' security model is based around users and groups being given permission to do things and access to resources, individual applications/processes do not generate security tokens (where identifying information is stored) of their own, they inherit an existing token.
That is not what I'm asking about. I'm asking about loading/opening a private key, not about opening it in something like notepad. Windows will not show the actual private key in a text editor, the only way to get the private key is to load it. From looking at the CNG API it appears that anyone who knows the name of the private key can open it. This is what I'm wanting to prevent.
– JadziaMD
Nov 20 at 7:58
add a comment |
up vote
0
down vote
up vote
0
down vote
There isn't. Windows' security model is based around users and groups being given permission to do things and access to resources, individual applications/processes do not generate security tokens (where identifying information is stored) of their own, they inherit an existing token.
There isn't. Windows' security model is based around users and groups being given permission to do things and access to resources, individual applications/processes do not generate security tokens (where identifying information is stored) of their own, they inherit an existing token.
answered Nov 19 at 16:39
SoronelHaetir
6,8201414
6,8201414
That is not what I'm asking about. I'm asking about loading/opening a private key, not about opening it in something like notepad. Windows will not show the actual private key in a text editor, the only way to get the private key is to load it. From looking at the CNG API it appears that anyone who knows the name of the private key can open it. This is what I'm wanting to prevent.
– JadziaMD
Nov 20 at 7:58
add a comment |
That is not what I'm asking about. I'm asking about loading/opening a private key, not about opening it in something like notepad. Windows will not show the actual private key in a text editor, the only way to get the private key is to load it. From looking at the CNG API it appears that anyone who knows the name of the private key can open it. This is what I'm wanting to prevent.
– JadziaMD
Nov 20 at 7:58
That is not what I'm asking about. I'm asking about loading/opening a private key, not about opening it in something like notepad. Windows will not show the actual private key in a text editor, the only way to get the private key is to load it. From looking at the CNG API it appears that anyone who knows the name of the private key can open it. This is what I'm wanting to prevent.
– JadziaMD
Nov 20 at 7:58
That is not what I'm asking about. I'm asking about loading/opening a private key, not about opening it in something like notepad. Windows will not show the actual private key in a text editor, the only way to get the private key is to load it. From looking at the CNG API it appears that anyone who knows the name of the private key can open it. This is what I'm wanting to prevent.
– JadziaMD
Nov 20 at 7:58
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53376597%2fload-private-key-only-by-company-signed-application%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown