hepix-virtualisation / vmcatcher

Provides an up to date cache of authorised VM imagelists and VM images.
Apache License 2.0
5 stars 6 forks source link

catch exception when you can't read the hostkey #1

Closed igable closed 13 years ago

igable commented 13 years ago
[igable@elephant hepixvmilsubscriber]$ python vmlisub_sub.py  -s https://particle.phys.uvic.ca/~igable/hepix/hepix_signed_image_list
Traceback (most recent call last):
  File "vmlisub_sub.py", line 553, in ?
    main()
  File "vmlisub_sub.py", line 486, in main
    database.setup_trust_anchor(options.cert_dir)
  File "vmlisub_sub.py", line 296, in setup_trust_anchor
    self.anchor.update_ca_list(directory)
  File "/home/igable/hepix/smimeX509validation/smimeX509validation/loadcanamespace.py", line 222, in update_ca_list
    ca_name_spaces.load_ca_cert(fullpath)
  File "/home/igable/hepix/smimeX509validation/smimeX509validation/loadcanamespace.py", line 105, in load_ca_cert
    x509c = X509.load_cert(filename)
  File "/usr/lib64/python2.4/site-packages/M2Crypto/X509.py", line 546, in load_cert
    bio = BIO.openfile(file)
  File "/usr/lib64/python2.4/site-packages/M2Crypto/BIO.py", line 186, in openfile
    return File(open(filename, mode))
IOError: [Errno 13] Permission denied: '/etc/grid-security/certificates/hostkey.pem'
igable commented 13 years ago

Ignore this issue. The hostkey should never be placed in this directory, it was a misconfigured host.