Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to set up IIS to download CA Root Certificate

836 views
Skip to first unread message

Mo

unread,
May 11, 2007, 9:03:42 AM5/11/07
to
Hi,

I have copied my sites SSL CA Root Certificate to my web sites root
for users to download and install on their browser. When I visit
http://www.mysite.com/cacert.cer the browser returns an error saying
the file is not found where it is infact there. Does anybody know what
is going on here? How do I work around this problem.

Thanks

Rich Raffenetti

unread,
May 11, 2007, 7:10:46 PM5/11/07
to
The problem is that file type cer is not a known mime type. Either you need
to provide a cert in a different file type or you need to add cer as a known
mime type.

Quite a few certificate file types are known mime types. Many begin with
the letter "p". Some are p7b, p7c, pfx, ...

To view the mime types, open Properties in the IIS Manager at the server.

If you decide to add cer, make it look like a txt file.

"Mo" <le_m...@yahoo.com> wrote in message
news:1178888622.0...@y5g2000hsa.googlegroups.com...

Mo

unread,
May 11, 2007, 11:19:04 PM5/11/07
to
Thank you for your suggestion. Somehow I still have the same problem.I
added the Mime Types under IIS properties using:

.cer MIME type text/plain
and
.cer MIME type application/x-x509-ca-cert

but still when I call the file I get the followig error

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

If I change the extension to txt the file can be pulled from the site.
If I change the extension to pfx, I can download the file but I can
not install it and I get an error. I am trying to avoid having the
user rename the certificate file. when the file is in cer format, I
can directly open it on the client and add it to the trusted root
contract authorities.

Thanks,
Mo

Ken Schaefer

unread,
May 12, 2007, 12:21:17 AM5/12/07
to
Hi,

Please look in the IIS logfiles. There will be a HTTP substatus code along
with the 404 entry. It may not be a MIME type problem at all.

Check here for differing reasons for 404:
http://www.adopenstatic.com/faq/IISRequestProcessing.aspx

Cheers
Ken

"Mo" <le_m...@yahoo.com> wrote in message

news:1178939944.3...@p77g2000hsh.googlegroups.com...

Rich Raffenetti

unread,
May 12, 2007, 9:23:37 AM5/12/07
to
Your experiences tell me that the issue is a mime type issue. txt is a known
mime type. Text/plain is the right choice if you exported as base-64
encoded. DER encoded binary will require application/octet-stream.
However, after renaming to .txt, the file should download. Did you restart
IIS after adding cer?

You cannot rename the file type to pfx but you can export the certificate to
a format with a different file type. In the certificate export wizard the
third choice is Cryptographic Message Syntax Standard - PKCS #7 Certificates
(.P7B). That is a known mime type that I cited in my earlier posting. I
would also check the box to include all certificates in the chain.

Certificate import programs know about P7B file types.

"Mo" <le_m...@yahoo.com> wrote in message

news:1178939944.3...@p77g2000hsh.googlegroups.com...

David Wang

unread,
May 12, 2007, 7:39:58 PM5/12/07
to
On May 12, 6:23 am, "Rich Raffenetti"

<rich@raffenetti_takethisout.com> wrote:
> Your experiences tell me that the issue is a mime type issue. txt is a known
> mime type. Text/plain is the right choice if you exported as base-64
> encoded. DER encoded binary will require application/octet-stream.
> However, after renaming to .txt, the file should download. Did you restart
> IIS after adding cer?
>
> You cannot rename the file type to pfx but you can export the certificate to
> a format with a different file type. In the certificate export wizard the
> third choice is Cryptographic Message Syntax Standard - PKCS #7 Certificates
> (.P7B). That is a known mime type that I cited in my earlier posting. I
> would also check the box to include all certificates in the chain.
>
> Certificate import programs know about P7B file types.
>
> "Mo" <le_mo...@yahoo.com> wrote in message

>
> news:1178939944.3...@p77g2000hsh.googlegroups.com...
>
>
>
> > Thank you for your suggestion. Somehow I still have the same problem.I
> > added the Mime Types under IIS properties using:
>
> > .cer MIME type text/plain
> > and
> > .cer MIME type application/x-x509-ca-cert
>
> > but still when I call the file I get the followig error
>
> > HTTP Error 404 - File or directory not found.
> > Internet Information Services (IIS)
>
> > If I change the extension to txt the file can be pulled from the site.
> > If I change the extension to pfx, I can download the file but I can
> > not install it and I get an error. I am trying to avoid having the
> > user rename the certificate file. when the file is in cer format, I
> > can directly open it on the client and add it to the trusted root
> > contract authorities.
>
> > Thanks,
> > Mo- Hide quoted text -
>
> - Show quoted text -


If one changes MIME Type at the global level, it requires restarting
IIS for it take effect.
If one changes MIME Type at the web server or below levels, it is
instaneous.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

bagirovelsever

unread,
Feb 27, 2010, 1:19:04 AM2/27/10
to
pt

Ken Schaefer wrote:

Hi,Please look in the IIS logfiles.
12-May-07

Hi,

Please look in the IIS logfiles. There will be a HTTP substatus code along
with the 404 entry. It may not be a MIME type problem at all.

Check here for differing reasons for 404:
http://www.adopenstatic.com/faq/IISRequestProcessing.aspx

Cheers
Ken

"Mo" <le_m...@yahoo.com> wrote in message
news:1178939944.3...@p77g2000hsh.googlegroups.com...

Previous Posts In This Thread:

On Friday, May 11, 2007 9:03 AM
Mo wrote:

How to set up IIS to download CA Root Certificate
Hi,

I have copied my sites SSL CA Root Certificate to my web sites root
for users to download and install on their browser. When I visit
http://www.mysite.com/cacert.cer the browser returns an error saying
the file is not found where it is infact there. Does anybody know what
is going on here? How do I work around this problem.

Thanks

On Friday, May 11, 2007 7:10 PM
Rich Raffenetti wrote:

The problem is that file type cer is not a known mime type.
The problem is that file type cer is not a known mime type. Either you need
to provide a cert in a different file type or you need to add cer as a known
mime type.

Quite a few certificate file types are known mime types. Many begin with
the letter "p". Some are p7b, p7c, pfx, ...

To view the mime types, open Properties in the IIS Manager at the server.

If you decide to add cer, make it look like a txt file.

"Mo" <le_m...@yahoo.com> wrote in message
news:1178888622.0...@y5g2000hsa.googlegroups.com...

On Friday, May 11, 2007 11:19 PM
Mo wrote:

Thank you for your suggestion. Somehow I still have the same problem.
Thank you for your suggestion. Somehow I still have the same problem.I
added the Mime Types under IIS properties using:

..cer MIME type text/plain
and
..cer MIME type application/x-x509-ca-cert

but still when I call the file I get the followig error

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

If I change the extension to txt the file can be pulled from the site.
If I change the extension to pfx, I can download the file but I can
not install it and I get an error. I am trying to avoid having the
user rename the certificate file. when the file is in cer format, I
can directly open it on the client and add it to the trusted root
contract authorities.

Thanks,
Mo

On Saturday, May 12, 2007 12:21 AM
Ken Schaefer wrote:

Hi,Please look in the IIS logfiles.
Hi,

Please look in the IIS logfiles. There will be a HTTP substatus code along
with the 404 entry. It may not be a MIME type problem at all.

Check here for differing reasons for 404:
http://www.adopenstatic.com/faq/IISRequestProcessing.aspx

Cheers
Ken

"Mo" <le_m...@yahoo.com> wrote in message
news:1178939944.3...@p77g2000hsh.googlegroups.com...

On Saturday, May 12, 2007 9:23 AM
Rich Raffenetti wrote:

Your experiences tell me that the issue is a mime type issue.
Your experiences tell me that the issue is a mime type issue. txt is a known
mime type. Text/plain is the right choice if you exported as base-64
encoded. DER encoded binary will require application/octet-stream.
However, after renaming to .txt, the file should download. Did you restart
IIS after adding cer?

You cannot rename the file type to pfx but you can export the certificate to
a format with a different file type. In the certificate export wizard the
third choice is Cryptographic Message Syntax Standard - PKCS #7 Certificates
(.P7B). That is a known mime type that I cited in my earlier posting. I
would also check the box to include all certificates in the chain.

Certificate import programs know about P7B file types.

"Mo" <le_m...@yahoo.com> wrote in message
news:1178939944.3...@p77g2000hsh.googlegroups.com...

On Saturday, May 12, 2007 7:39 PM
David Wang wrote:

Re: How to set up IIS to download CA Root Certificate


Submitted via EggHeadCafe - Software Developer Portal of Choice
SharePoint List Usage and Statistics
http://www.eggheadcafe.com/tutorials/aspnet/892bae83-5b96-4275-95fd-9723a79fdb14/sharepoint-list-usage-and.aspx

0 new messages