Is the public key generated correctly?

Bug #1519422 reported by Rudolf Fäder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server Guide
Invalid
Undecided
Unassigned

Bug Description

Hey guys,

I have read the following article:

https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html

and you advise the user to create a public key like this:

openssl rsa -in server.key -out server.key.insecure

I think the option -pubout is missing here. With the key created with the line above I cant encrypt any text file and I am receiving the error "Unable to load Public key".

Rudolf Fäder

Revision history for this message
Peter Matulis (petermatulis) wrote :

Firstly, the key being generated is a private key, not a public one.

Secondly, this chapter is about using SSL to identify a server and encrypt data while talking to a remote client, not encrypting files a la carte by a user. It is possible to do what you say but you need to use different commands, kind of what you're discovering. Anyway, GnuPG is the standard way to do what you're after.

There is nothing wrong with the page you refer to if it's used the way it is intended.

Revision history for this message
Rudolf Fäder (rudolf-faeder) wrote :

Dear Mr. Matulis,

some other pages describing the key creation using -pubout has thrown me here off. After reading many web pages to this subject and tried a lot I can sustain your description. There is no error in the document.

Sorry to have bothered you here,

Rudolf Fäder

Changed in serverguide:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.