user1201405
user1201405

Reputation: 155

Self-signed vs. real SSL certificate for DEVELOPMENT environment

Let's say you have a web site that requires SSL and you have production server for which you have a wildcard certificate issued by Verisign or another trusted authority. You also want to run it locally on your developer's machine using SSL.

Would you use the real certificate on your developer's machine or you'd rather create a self-signed certificate instead? Why? Pros? Cons?

Personally I would create a wildcard self-signed certificate for several reasons:

Are there any official "best practices" on the subject?

What are your thoughts?

Upvotes: 6

Views: 1907

Answers (1)

user207421
user207421

Reputation: 310985

I agree with you. The major reason, which you haven't listed, is that using the same certificate in two places requires two copies of the private key, which is an information leak and security breach.

However make sure you implement the self-signed certificate correctly, i.e. by importing it into the relevant client truststores. NOT by installing the trust-all-certificates security breach code that is often seen in answers to questions of this type.

Upvotes: 3

Related Questions