-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathINSTALL.txt
More file actions
68 lines (51 loc) · 3.01 KB
/
Copy pathINSTALL.txt
File metadata and controls
68 lines (51 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Dependencies
--------------
pexpect/pxssh
This is available from many distributions. And is also downloadable from
http://sourceforge.net/projects/pexpect/files/
If you encounter problems with SSH login, you may need to refer to
http://www.velocityreviews.com/forums/t585117-read_nonblocking-error-in-pxssh.html
and possibly add:
self.sendline()
time.sleep(0.5)
just before:
self.read_nonblocking(size=10000,timeout=1) # GAS: Clear out the cache before getting the prompt
in pxssh.py
Ugly, but seems to be unavoidable.
pyOpenSSL >=0.7
I've been using 0.8 installed via tarball from Sourceforge:
http://sourceforge.net/project/pyopenssl
In theory, it should be possible to create an RPM from this distribution.
VDT:PPDG-Cert-Scripts
Certify expects the cert-gridadmin command to be onthe path, so you should add the OSG setup to your shell profile.
Installation
---------------
If you have root, and are running RHEL 5.X, the easiest way to use certify would be to install the BNL RPM repo:
-- Navigate to http://dev.racf.bnl.gov/yum/grid/production/rhel/5Client/x86_64/
-- wget (or otherwise download) the racf-grid-release-latest.noarch.rpm
-- Install the RPM. 'rpm -ivh racf-grid-release-latest.noarch.rpm'
-- You may need to enable the testing repo (edit /etc/yum.repos.d/racf-grid-testing.repo) depending on whether
a production version of certify is available.
If you don't have root, you can do a home directory install from within this source distribution:
python setup.py install --home=/home/myhomedir
(substitution in your own home dir for "myhomedir".) You'll need to confirm the dependencies above are already installed.
Configuration
----------------
As a user, you'll then need to set up the config files. Recommended:
-- mkdir ~/.certify
-- 'cp /usr/share/certify/config/*.conf ~/.certify' (or from ~/share/certify/config).
-- Make sure your cert is at ~/.globus/user[cert|key].pem , and that there is a passphrase.
-- Edit certify.conf and set the hostsuri to point at your hosts.conf
-- Edit hosts.conf and set all the site/individual specific info (e.g. smtp host, email addresses, etc.)
-- The default is to create a cert signed by a self-signed dummy CA, so try that first:
-- Create a single dummy host section, e.g. [myhost.mydomain.com]
-- Run 'certify -c ~/.certify.conf -v -L ~/certify.log'
-- Assuming that works, try using the SSHIOPlugin.
-- Create a real host section, e.g. [myrealhost.mydomain.com]
-- Set that host to use ioclass=SSHIOPlugin
-- Be sure ssh-agent is running properly and you can log in to the target host(s)
-- Assuming that works, and you get a notification email, try to automatically create a DOEgrids host cert:
-- Confirm that the cert-gridadmin command is set up properly.
-- Create or edit another real host section.
-- Set that host to use adminclass=VDTAdminPlugin
-- Be sure your DN is registered with grid administrator rights at DOEgrids.