D
David Thielen
Hi;
In our installer (we use WIX so the code has to be C++, not C#) we need to
call aspnet_regiis to encrypt the connection strings in web.config. I have
three questions about this:
1) What registry entry can we use to determine the location of
aspnet_regiis? As not everyone installs to C:, we can't assume the location.
2) It strikes me that writing the unencrypted connection string to
web.config and then running aspnet_regiis leaves a security hole - what if
aspnet_regiis fails? Then it's sitting there in clear text. Is there a way to
write the connection string out already encrypted?
3) When we encrypt we need to pass the name of the ASP.NET user. I have
another post on this but figure it can't hurt to ask here too. How do we get
that from the system? I don't want to ask the user because if they put in the
wrong username, nothing works. And some will do that.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
In our installer (we use WIX so the code has to be C++, not C#) we need to
call aspnet_regiis to encrypt the connection strings in web.config. I have
three questions about this:
1) What registry entry can we use to determine the location of
aspnet_regiis? As not everyone installs to C:, we can't assume the location.
2) It strikes me that writing the unencrypted connection string to
web.config and then running aspnet_regiis leaves a security hole - what if
aspnet_regiis fails? Then it's sitting there in clear text. Is there a way to
write the connection string out already encrypted?
3) When we encrypt we need to pass the name of the ASP.NET user. I have
another post on this but figure it can't hurt to ask here too. How do we get
that from the system? I don't want to ask the user because if they put in the
wrong username, nothing works. And some will do that.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm