Thursday, August 31, 2017

Create local host cert for ssl, and install so that ssl works when debugging locally, in windows7 , with powershell as part of the process.



So I'm teaching my self about ssl, on the way to learning to do SSO to Google suite for edu.

I had to create a ssl web site for testing this process.
here are the steps I used to get the cert stuff working


  1. In powershell run the following command
    1. New-SelfSignedCertificate -DnsName "localhost" -CertStoreLocation "cert:\LocalMachine\My"
      1. Which I got from this Stack Overflow article https://stackoverflow.com/questions/8169999/how-can-i-create-a-self-signed-cert-for-localhost
  2. Then install following the steps in this video
    1. https://www.youtube.com/watch?v=y4uKPUFmSZ0
  3. The close your browser, and press <F5> to start debugging the app afresh.
That's it!

Friday, February 10, 2017

Vs 2015 malformed NuGet.Config missing root element

 To fix the Vs2015 issue at JCDC use this as the guts of your NuGet.Config file in the
root of the solution.

If you are not at JCDC leave out the repository path and put in the guts of your own old style NuGet.Config

<?xml version="1.0" encoding="utf-8"?>

<configuration>

<settings>

<repositoryPath>./packages</repositoryPath>

</settings>

</configuration>
 
 


Thursday, January 19, 2017

Case notes expired session issue,

case notes used a child application architecture to share the login with the parent app.

to do this the following must be set up

In order for virtual applications to work the machine key needs to be the same for the child as it is for the parent.  Currently the 2012 server has the key set up to auto generate.  Add key to machine's web.config.
Machine key taken from Windows 2003 server (10.0.240.199)
 
Open C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config
There are two <system.web> sections.  One is inside a <location> section, one is not.  Paste the key in the <system.web> section that is not.
 
<machineKeyvalidationKey="<your key goes here>" decryption="3DES" validation="SHA1"/>​