Windows Server 2008 - Adding a client certificate to another user's personal certificate store
hi,
im creating x509certificate2 certificate , install certificate in current user's personal certificate store using .net program. certificate installation process initiate windows service , windows service running current user's credentials. certificate installed in service running user's personal certificate store.
error scenario:-
in windows server 2008,
windows service running user's credentials. (so certificate should install in service running users personal certificate store).
after login different user , when certificate installation process initiated windows service, following exception has been generated , certificate not installed.
fail install certificate its respective certificate store. ---> system.security.cryptography.cryptographicexception: internal error occurred.
@ system.security.cryptography.cryptographicexception.throwcryptogaphicexception(int32 hr)
@ system.security.cryptography.x509certificates.x509utils._loadcertfromfile(string filename, intptr password, uint32 dwflags, boolean persistkeyset, safecertcontexthandle& pcertctx)
@ system.security.cryptography.x509certificates.x509certificate.loadcertificatefromfile(string filename, object password, x509keystorageflags keystorageflags)
@ system.security.cryptography.x509certificates.x509certificate2..ctor(string filename, string password)
@ mcd.rdm.tools.componentinstaller.certificatehandler.execute(string[] args)
--- end of inner exception stack trace ---
above mentioned process completed without issue on windows server 2003, windows xp o/s.
please provide details if there security setting need change in windows server 2008 environment.
im creating x509certificate2 certificate , install certificate in current user's personal certificate store using .net program. certificate installation process initiate windows service , windows service running current user's credentials. certificate installed in service running user's personal certificate store.
error scenario:-
in windows server 2008,
windows service running user's credentials. (so certificate should install in service running users personal certificate store).
after login different user , when certificate installation process initiated windows service, following exception has been generated , certificate not installed.
fail install certificate its respective certificate store. ---> system.security.cryptography.cryptographicexception: internal error occurred.
@ system.security.cryptography.cryptographicexception.throwcryptogaphicexception(int32 hr)
@ system.security.cryptography.x509certificates.x509utils._loadcertfromfile(string filename, intptr password, uint32 dwflags, boolean persistkeyset, safecertcontexthandle& pcertctx)
@ system.security.cryptography.x509certificates.x509certificate.loadcertificatefromfile(string filename, object password, x509keystorageflags keystorageflags)
@ system.security.cryptography.x509certificates.x509certificate2..ctor(string filename, string password)
@ mcd.rdm.tools.componentinstaller.certificatehandler.execute(string[] args)
--- end of inner exception stack trace ---
above mentioned process completed without issue on windows server 2003, windows xp o/s.
please provide details if there security setting need change in windows server 2008 environment.
hello,
as sounds programming problem, please use msdn forum instead one:
http://social.msdn.microsoft.com/forums/en/categories/
best regards meinolf weber disclaimer: posting provided "as is" no warranties or guarantees , , confers no rights.
Windows Server > Windows Server General Forum
Comments
Post a Comment