Advertisement

02.03.2008 at 04:51PM PST, ID: 23133776
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

How can I generate a private key for my SSL certificate?

Tags: Microsoft, Windows 2003, SSL certificates
Hi,

I've manually created an SSL certificate using OpenSSL on Linux.  No certificate request file was used. I'm trying to import this certificate into IIS6 on Windows 2003 to secure one of my websites.

The certificate has been imported into Certificates(Computer) > Personal > Certificates using the Certificates snap-in, and it shows up in IIS when I try to assign the certificate to the website. IIS accepts the certificate and all seems well.

However, when I try to browse to the secure site, the connection fails immediately. Packet sniffing reveals that the SSL "Client Hello" packet is being sent and it disconnects immediately aftewards. Opening the certificate reveals no errors, however no private key has been created for the certificate.


I'm pretty sure it fails because it hasn't created the private key, but I can't find any information on how to manually created it.

Any ideas?

Thanks for your time,
-Brendan
Start your free trial to view this solution
Question Stats
Zone: Networking
Question Asked By: blowfly
Solution Provided By: blowfly
Participating Experts: 1
Solution Grade: A
Views: 71
Translate:
Loading Advertisement...
02.03.2008 at 04:53PM PST, ID: 20811198

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.03.2008 at 05:00PM PST, ID: 20811232

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.03.2008 at 06:41PM PST, ID: 20811643

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.03.2008 at 06:49PM PST, ID: 20811669

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.03.2008 at 09:09PM PST, ID: 20812058

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.03.2008 at 10:07PM PST, ID: 20812298

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.04.2008 at 03:03PM PST, ID: 20819058

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.04.2008 at 04:10PM PST, ID: 20819518

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.11.2008 at 08:24PM PST, ID: 20872500

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
02.03.2008 at 04:53PM PST, ID: 20811198
Incidentally - the CA which authorized this certificate also authorized it's own trusted root certificate (ie self-signed).

The CA's certificate has been imported in to the webserver and neither certificate shows any errors.
 
02.03.2008 at 05:00PM PST, ID: 20811232
Heres some info on the steps you've already done to check against...
http://www.flatmtn.com/article/setting-openssl-create-certificates

And another for importing to IIS 6...
http://www.windowsitpro.com/Windows/Articles/ArticleID/16183/pg/2/2.html

Hope port 443 is active...


 
02.03.2008 at 06:41PM PST, ID: 20811643
Thanks for the info. The certificate is intact, ports are good (as the last certificate worked), and I've imported it into IIS as per instructions, except that I didn't use a request to generate the certificate in the first place (I've simply introduced the certificate from scratch).

I get the impression that IIS will only generate private keys for certificates it originally generated the request for. If you try to introduce a new certificate (without the request file) it won't handle it.

Any ideas?
 
02.03.2008 at 06:49PM PST, ID: 20811669
I've just discovered that a .PEM file was created next to the .CRT file. This appears to be the private key, as it starts with:

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED...etc


Presumably this is the private key for this certificate. Can I associate this key with this certificate manually somehow?
 
02.03.2008 at 09:09PM PST, ID: 20812058
You will want to keep the private key hidden in a safe place...

In your brower, when the ssl error is generated, I am wondering what error the browser is giving. Double click on the error icon and it should display a detailed error description. The problem may be the ssl version..
 
02.03.2008 at 10:07PM PST, ID: 20812298
Understand the private key must be kept securely, problem is atm I don't even have one!

Firefox returns the following error:
"The connection to <myserveraddress> was interrupted while the page was loading."

Packet sniffer shows:
* TCP connection
* ClientHello
* Server kills connection immediately

Event Viewer doesn't show anything interesting.

Pretty sure I just need to convince it to generate a private key for the cert and all will be well. Alternatively - perhaps I misunderstand SSL architecture, is it the Certificate Authority that needs to generate the private key, rather than the server that uses the certificate?

Thanks again for your time,
-Brendan
 
02.04.2008 at 03:03PM PST, ID: 20819058
Did you run something like this to generate a priv key?
openssl genrsa -des3 -out keys/ca.key 1024

Ok, what happens when you browse the site on the server itself through IE?

Could be a communications issue you need to resolve first.
 
02.04.2008 at 04:10PM PST, ID: 20819518
Originally created using the CA.pl script.

I'm thinking if we few IIS6 a .PFX file (instead of CER file) it would have the private key. Can I ask OpenSSL for a PFX file?
 
02.11.2008 at 08:24PM PST, ID: 20872500
Found a resolution - it seems IIS will only really accept certificates which were generated by a request originating from IIS.

When we made a request from IIS, fed it into OpenSSL, then imported it into IIS, it accepted the certificate, had a private key, and all was well.
Accepted Solution
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628