handle all socket errors (socket-related/address-related and timeout related)
[certmaster.git] / certmaster / requester.py
1 """
2 certmaster requester -- asks for certs
3 any python app that wants to use certmaster can use this module
4
5 Copyright 2008, Red Hat, Inc
6 Michael DeHaan <mdehaan@redhat.com>
7
8 This software may be freely redistributed under the terms of the GNU
9 general public license.
10
11 You should have received a copy of the GNU General Public License
12 along with this program; if not, write to the Free Software
13 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
14 """
15
16 import utils
17
18 def request_cert(hostname=None):
19 # this should be enough, but do we want to allow parameters
20 # for overriding the server and port from the config file?
21 # maybe not. -- mpd
22 utils.create_minion_keys(hostname)