[GH-ISSUE #78] Access to the Key Path is denied. #58

Closed
opened 2026-02-26 10:35:29 +03:00 by kerem · 5 comments
Owner

Originally created by @mirsaeedi on GitHub (Feb 16, 2015).
Original GitHub issue: https://github.com/Pro/dkim-exchange/issues/78

Thanks you guys for your great work! Unfortunately DKIMSigner, does not sign messages in our server. In The EventLog Viewer, Following error is shown:

Couldn't load the key 'C:\Program Files\Exchange DkimSigner\keys\sohato.com.xml' for domain sohato.com. Error message: Access to the path 'C:\Program Files\Exchange DkimSigner\keys\sohato.com.xml' is denied.

what should I do?

Originally created by @mirsaeedi on GitHub (Feb 16, 2015). Original GitHub issue: https://github.com/Pro/dkim-exchange/issues/78 Thanks you guys for your great work! Unfortunately DKIMSigner, does not sign messages in our server. In The EventLog Viewer, Following error is shown: Couldn't load the key 'C:\Program Files\Exchange DkimSigner\keys\sohato.com.xml' for domain sohato.com. Error message: Access to the path 'C:\Program Files\Exchange DkimSigner\keys\sohato.com.xml' is denied. what should I do?
kerem 2026-02-26 10:35:29 +03:00
Author
Owner

@mirsaeedi commented on GitHub (Feb 16, 2015):

I Change the Key Location to be on my desktop. Now I`m getting another error:

The private key for domain sohato.com wasn't found: C:\Users\admin\Desktop\keys\sohato.com.xml

<!-- gh-comment-id:74473074 --> @mirsaeedi commented on GitHub (Feb 16, 2015): I Change the Key Location to be on my desktop. Now I`m getting another error: The private key for domain sohato.com wasn't found: C:\Users\admin\Desktop\keys\sohato.com.xml
Author
Owner

@Pro commented on GitHub (Feb 16, 2015):

Can you check the access rights for the folder C:\Program Files\Exchange DkimSigner\keys\ and make sure that the files exist.
I think the user SYSTEM needs access rights.

Regarding the files on your desktop: Are you sure that the path is correct?
Please try another path, e.g. C:\keys\foo.xml

<!-- gh-comment-id:74477212 --> @Pro commented on GitHub (Feb 16, 2015): Can you check the access rights for the folder `C:\Program Files\Exchange DkimSigner\keys\` and make sure that the files exist. I think the user `SYSTEM` needs access rights. Regarding the files on your desktop: Are you sure that the path is correct? Please try another path, e.g. `C:\keys\foo.xml`
Author
Owner

@mirsaeedi commented on GitHub (Feb 16, 2015):

I Solved it. It was about security and permission issues. I gave Full Access to the"keys" folder to the special "Everyone" user (of our Active Directory Domain). Now everything is working smoothly. thanks :)

<!-- gh-comment-id:74477882 --> @mirsaeedi commented on GitHub (Feb 16, 2015): I Solved it. It was about security and permission issues. I gave Full Access to the"keys" folder to the special "Everyone" user (of our Active Directory Domain). Now everything is working smoothly. thanks :)
Author
Owner

@codeandfix commented on GitHub (Mar 17, 2023):

Dont grant Access to everyone! Just use Network Service for Folder and Pub/Private Key.
Also remember to select private Key (Config selects public sometime).
Then restart service

<!-- gh-comment-id:1472938115 --> @codeandfix commented on GitHub (Mar 17, 2023): Dont grant Access to everyone! Just use Network Service for Folder and Pub/Private Key. Also remember to select private Key (Config selects public sometime). Then restart service
Author
Owner

@Waqas-javid commented on GitHub (May 28, 2024):

Add "Network Service" and assign permissions to it.

image

<!-- gh-comment-id:2134162118 --> @Waqas-javid commented on GitHub (May 28, 2024): Add "Network Service" and assign permissions to it. ![image](https://github.com/Pro/dkim-exchange/assets/170987931/eaa7ec19-4b49-41d2-8584-e676a29b391c)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dkim-exchange-Pro#58
No description provided.