| 292 | = Generating CSR certificate= |
| 293 | |
| 294 | |
| 295 | 1) Make a directory named workdir in `/etc/grid-security` and copy `hostkey.pem` of tomcat in this directory |
| 296 | |
| 297 | {{{ |
| 298 | #!sh |
| 299 | $ mkdir /etc/grid-security/workdir |
| 300 | $ cp /esg/config/tomcat/hostkey.pem /etc/grid-security/workdir |
| 301 | }}} |
| 302 | |
| 303 | 2) In `workdir` generate the CSR with this configuration file wiki:localopenssl.cnf |
| 304 | |
| 305 | {{{ |
| 306 | #!sh |
| 307 | $ cd /etc/grid-security/workdir |
| 308 | $ openssl req -config localopenssl.cnf -new -subj /O=Grid/OU=GlobusTest/OU=simpleCA-vesgint-idx.ipsl.jussieu.fr/CN=spock.meteo.unican.es -multivalue-rdn -key hostkey.pem -out spock.meteo.unican.es.csr |
| 309 | }}} |
| 310 | |
| 311 | 3)Check if CSR is well generated |
| 312 | {{{ |
| 313 | #!sh |
| 314 | $ openssl req -text -noout -in spock.meteo.unican.es.csr |
| 315 | }}} |