Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Setting up SSL Cert in development #30

Closed
choccybutton opened this issue Nov 1, 2012 · 4 comments
Closed

Setting up SSL Cert in development #30

choccybutton opened this issue Nov 1, 2012 · 4 comments

Comments

@choccybutton
Copy link

I've just tried pulling the code down to have a root around and I'm struggling to get the unit tests working.

The tests point to idsrv.local, which is easy enough to set up in IIS and hosts file, but because it requires SSL the tests fail. Adding a self cert SSL certificate doesn't help (unless I'm doing something wrong) as the self cert points to the local machine name, not to a custom domain name such as idsrv.local.

You guys must have this working locally so I was wondering if you can advise how you go about setting your environment up so that the unit tests work.

@brockallen
Copy link
Member

This is how I make certs:

makecert.exe -pe -r -a sha512 -n CN=idsrv.local -sr LocalMachine -ss My -sk y exchange -sk idsrv.local

Dom may have a different way.

@leastprivilege
Copy link
Member

yep.

@brockallen
Copy link
Member

Oh also, you'll have to grant IIS_IUSRS read access to the key from mmc/certificates.

@choccybutton
Copy link
Author

Many thanks :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants