SSL Certificates
I love SSL certs the green banner they give give a nice since of security when shopping online. But this week I was installing an SSL certificate and I encountered a very strange error "CertEnroll::CX509Enrollment::p_InstallResponse: ASN1 bad tag value met."
The error occurred when I tried to install the certificate via IIS.
To fix the problem I had to do the following:
- Click Start, click Run, type mmc.exe, and then click OK.
- Click File, click Add/Remove Span-ins.
- Select Certificates, and click Add, and then click OK.
- Select Computer account, and click Next, and then click Finish.
- Click OK.
- Expand Certificates (Local Computer), and Personal, and then Certificates.
- Right-click the certificate, and then click Properties.
- Edit the Friendly name field
Source: https://support.microsoft.com/en-us/kb/959216
After I finally got the certificate installed I applied the it to the IIS binding for the site and we got the green banner on the site when we visited the secure side of the site.
.NET Membership with MVC & Auto Scripting
Kit this week has been building a Membership implementation for a client. He was trying to do it via code first approach were the database would be built later on.
I thought there was no automatic script building for SQL server. However buried deep inside .NET and not well documented Kit found how to get the database on the SQL server to be automatically populated specificly for Membership/Identity. All one had to do was send in the connection string and when you registered your first user the tables would be created on your SQL database. This will make creating Membership entities a lot easier int he future. Nice on Kit.
public class ApplicationDbContext : IdentityDbContext
{
public ApplicationDbContext()
: base("ConnectionString.SQL Server (SqlClient)", throwIfV1Schema: false)
{
}
public static ApplicationDbContext Create()
{
return new ApplicationDbContext();
}
}
The Return of Gregory
Greg our intern for 7 months last year has returned to work full time with Dovetail. We are delighted to welcome him back. Hopefully he will have a blog post for you this month. He has been working with Fabrizio on the IKEA project.