windows-server-2008-r2

PrivateKey trust permissions for local machine “Trusted roots” certificates

二次信任 提交于 2019-11-28 11:21:39
I have a certificate that has to be imported into Certificates/Trusted Root Certification Authorities and has a corresponding private key. To actually access the key from code you need to set private key permissions to grant full access to particular IIS application pool. I totally understand that but the problem is that this can only be set on personal certificates and not trusted root ones. I've tried adding the same certificate to Personal store and the following code doesn't break: X509Store store = new X509Store(StoreName.Root, StoreLocation.LocalMachine); store.Open(OpenFlags.ReadOnly);

Azure Hosted Service Bus : “The X.509 certificate CN=servicebus.windows.net is not in the trusted people store.”

♀尐吖头ヾ 提交于 2019-11-28 02:08:39
Using Azure SDK 2.3 on my vs2013 development VM I can consume Service Bus queues hosted in Azure painlessly. However, on Windows Server 2008 R2 Standard SP1, it looks like Windows can not trust the involved certificates and an exception is thrown. The line that throws : // Send the message await queueclient.SendAsync(message); Exception message : The X.509 certificate CN=servicebus.windows.net is not in the trusted people store. The X.509 certificate CN=servicebus.windows.net chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate

ldap_mod_replace() [function.ldap-mod-replace]: Modify: Server is unwilling to perform

不打扰是莪最后的温柔 提交于 2019-11-28 00:47:54
问题 Getting an error: Server is unwilling to perform while changing unicodePwd in AD through PHP. However, I'm able to search, add, remove and modify any attributes of the users. Using Administrator account to bind and admin has full rights to change passwords of any users. Here's the code I'm using: <?php $dn = "CN=Vishal Makwana,OU=Address Book,DC=example,DC=com"; $ad = ldap_connect("ldap://example.com") or die("Couldn't connect to AD!"); ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3); $bd

IIS7 Accessing Network Share

送分小仙女□ 提交于 2019-11-27 18:34:49
I am running IIS 7 on Windows Server 2008 R2 with PHP 5.4. One of my PHP scripts is trying to access a file on a protected network share using a UNC path. How can I change the IIS service account to an account that has permission to access the share? This is really easy to do on Apache HTTP server (you just change it), but it's not clear how to do with IIS. What can I do? Update: I was able to get things working using the "Connect As" option in the "Basic Settings" of my website and then specifying an account that has access to the network share. It appears that my problem is related to this

Impersonate Domain User with Integrated Pipeline

时光总嘲笑我的痴心妄想 提交于 2019-11-27 17:32:30
This is a question that continues to haunt me... In an local Intranet environment, are we doomed to use "Classic" pipeline mode in our App Pool if we want to use Impersonate our Windows domain users, or is there a new way to declaratively "run as" them (so-to-speak)? My goal is to use Windows Authentication for local web applications on my Intranet so users can authenticate and run apps under their active directory account (principle). Every time I try this (Using the NetworkService identity of course), I get this error: Thanks! ;) I wrote a small app to display the current user's network

The configuration section 'system.servicemodel' cannot be read because it is missing a section declaration

不问归期 提交于 2019-11-27 17:08:48
问题 I have somewhat of a problem. My old webserver (windows 2003) have been replaced, with a 2008 R2. I have been given an admin account on it, and can do whatever I want, but I am no expert on this area. I configured the roles to have application developement and Web server (iis7). BUT, my website runs .NET4, and the role only installed 3.5. So I have attempted to install .NET4 manually, on the server. My problem is, my website will not work on it, due to the System.ServiceModel section in my

Classic ASP : C0000005 Error on execution

为君一笑 提交于 2019-11-27 15:37:15
I'm trying to execute classic ASP pages on a windows 2008 64 bit R2 box. Initially the problem was with registering dlls : That's now fixed. Register DLL file on Windows Server 2008 R2 Now when I try to access the page I get this error Active Server Pages error 'ASP 0241' CreateObject Exception index.asp The CreateObject of '(null)' caused exception C0000005. Server object error 'ASP 0177 : c0000005' When I change the code from Server.CreateObject to CreateObject .. I end up with this error Active Server Pages error 'ASP 0115' Unexpected error index.asp A trappable error (C0000005) occurred in

Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders

天大地大妈咪最大 提交于 2019-11-27 11:42:13
Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders for a long time. For example when deleting a file, the file may remain locked for 1 minute or more and only after that be deleted. On another occasions I encountered files or folders I could not delete. ProcMon showed that the System Process was holding a handle to those resources for a couple of minutes and then released them None of the resources I mentioned were system resources, only files and folders installed be me and handled by my applications. Maiku Mori As Dani has already mentioned in the comment: It's a

Run PHP script in background on Apache start/restart(Windows Server)

ぃ、小莉子 提交于 2019-11-27 06:16:40
问题 I've installed Apache 2.4 with PHP 5.4 on Windows Server 2008 following instructions from this manual: Apache installing manual. Apache runs as a service now. My application requires a php websocket script to run in the background. I'm running it manually with: php myscript.php The question is: Is there a way to start a background script automatically on system(apache) restart? I found the following topic, but I didn't know where I could find an apache startup script for Windows. Any help

PrivateKey trust permissions for local machine “Trusted roots” certificates

五迷三道 提交于 2019-11-27 06:14:20
问题 I have a certificate that has to be imported into Certificates/Trusted Root Certification Authorities and has a corresponding private key. To actually access the key from code you need to set private key permissions to grant full access to particular IIS application pool. I totally understand that but the problem is that this can only be set on personal certificates and not trusted root ones. I've tried adding the same certificate to Personal store and the following code doesn't break: