MakeCert, SSL and IIS6 problems.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > MakeCert, SSL and IIS6 problems.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    MakeCert, SSL and IIS6 problems.  
Raghu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 10:59 PM

I have created 3 certificates with following commands:

makecert -sk myselfkey -pe -r -n "CN=mycomputer authority" myself.cer -ss
root -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy
12

makecert -sk myserverkey -pe -n "CN=mycomputer server" my_server.cer -ic
myself.cer -is root -ss my -sky exchange -sp "Microsoft RSA SChannel
Cryptographic Provider" -sy 12

The first one is self signing certificate, second one is for IIS server
certificate, and third one for IE client certificate. After I moved them
around in the certificate stores, here is how they looked:

1) The first certificate (self signing) is located in "Trusted Root
Certification Authorities" in "Certificates (Local Computer)".

2) The second certificate (server) is located in "Personal" in "Certificates
(Local Computer)". This has the private key with it. The public part of the
certificate is stored in "Personal" in "Certificates (Current User)".

Using the IIS manager admin tool, I assigned the second (server) certificate
to the default web site on my machine. I created a virtual directory with a
simple html page. I made sure that this virtual directory and the simple
html page work without configuring SSL using http in the url. Then I
modified the File Security settings of the simple html page to require SSL.
However the page fails to load with "https" in the url. The information
shown on the browser is vague. However when I switch to another certificate
from third party, it works fine.

When I used the certificate from makecert, I was not able to see the SSL
request in IIS log either.

Is some thing wrong with the way I used makecert tool? Any help is greatly
appreciated.

Thanks.
Raghu/..







[ Post a follow-up to this message ]



    Re: MakeCert, SSL and IIS6 problems.  
David Wang [Msft]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 10:59 PM

Use SelfSSL to determine what is wrong with your certificate.

http://www.microsoft.com/downloads/...&DisplayLang=en

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Raghu" <Raghu@Nospam.com> wrote in message
news:ei%232Xq0pFHA.3812@TK2MSFTNGP10.phx.gbl...
I have created 3 certificates with following commands:

makecert -sk myselfkey -pe -r -n "CN=mycomputer authority" myself.cer -ss
root -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy
12

makecert -sk myserverkey -pe -n "CN=mycomputer server" my_server.cer -ic
myself.cer -is root -ss my -sky exchange -sp "Microsoft RSA SChannel
Cryptographic Provider" -sy 12

The first one is self signing certificate, second one is for IIS server
certificate, and third one for IE client certificate. After I moved them
around in the certificate stores, here is how they looked:

1) The first certificate (self signing) is located in "Trusted Root
Certification Authorities" in "Certificates (Local Computer)".

2) The second certificate (server) is located in "Personal" in "Certificates
(Local Computer)". This has the private key with it. The public part of the
certificate is stored in "Personal" in "Certificates (Current User)".

Using the IIS manager admin tool, I assigned the second (server) certificate
to the default web site on my machine. I created a virtual directory with a
simple html page. I made sure that this virtual directory and the simple
html page work without configuring SSL using http in the url. Then I
modified the File Security settings of the simple html page to require SSL.
However the page fails to load with "https" in the url. The information
shown on the browser is vague. However when I switch to another certificate
from third party, it works fine.

When I used the certificate from makecert, I was not able to see the SSL
request in IIS log either.

Is some thing wrong with the way I used makecert tool? Any help is greatly
appreciated.

Thanks.
Raghu/..








[ Post a follow-up to this message ]



    Re: MakeCert, SSL and IIS6 problems.  
Raghu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-05 01:49 AM

David,

Thanks for the information. When I used SSLDiag.exe it showed me following:

#You have a private key that corresponds to this certificate

But when I impersonated the server account, it showed me following:

#WARNING: You have a private key that corresponds to this certificate but
CryptAcquireCertificatePrivateKey failed

How can I correct this problem?

Thanks.

"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:uK$Q$W1pFHA.3536@TK2MSFTNGP15.phx.gbl...
> Use SelfSSL to determine what is wrong with your certificate.
>
> http://www.microsoft.com/downloads/...&DisplayLang=en
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> //
> "Raghu" <Raghu@Nospam.com> wrote in message
> news:ei%232Xq0pFHA.3812@TK2MSFTNGP10.phx.gbl...
> I have created 3 certificates with following commands:
>
> makecert -sk myselfkey -pe -r -n "CN=mycomputer authority" myself.cer -ss
> root -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy
> 12
>
> makecert -sk myserverkey -pe -n "CN=mycomputer server" my_server.cer -ic
> myself.cer -is root -ss my -sky exchange -sp "Microsoft RSA SChannel
> Cryptographic Provider" -sy 12
>
> The first one is self signing certificate, second one is for IIS server
> certificate, and third one for IE client certificate. After I moved them
> around in the certificate stores, here is how they looked:
>
> 1) The first certificate (self signing) is located in "Trusted Root
> certification Authorities" in "Certificates (Local Computer)".
>
> 2) The second certificate (server) is located in "Personal" in
> "Certificates
> (Local Computer)". This has the private key with it. The public part of
> the
> certificate is stored in "Personal" in "Certificates (Current User)".
>
> Using the IIS manager admin tool, I assigned the second (server)
> certificate
> to the default web site on my machine. I created a virtual directory with
> a
> simple html page. I made sure that this virtual directory and the simple
> html page work without configuring SSL using http in the url. Then I
> modified the File Security settings of the simple html page to require
> SSL.
> However the page fails to load with "https" in the url. The information
> shown on the browser is vague. However when I switch to another
> certificate
> from third party, it works fine.
>
> When I used the certificate from makecert, I was not able to see the SSL
> request in IIS log either.
>
> Is some thing wrong with the way I used makecert tool? Any help is greatly
> appreciated.
>
> Thanks.
> Raghu/..
>
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:05 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register