Belarusian Grid Certification Authority |
Русский |
The information help You to get access to Belarusian Grid resources. Belarusian Grid certificates do not automatically grant access to any computing resources. Your permission on remote system is granted by the system owners. Certificates allow to identify remote users and hosts.
If You are not familiar with the certificates, please see X.509 and SSL descriptions.
mkdir ~/.globus
cd ~/.globus
wget http://ca.grid.by/misc/BelarusianGridCA-user.cnf
openssl req -new -config BelarusianGridCA-user.cnf -out usercert_request.pem -sha1* Choose a strong password;
openssl req -in usercert_request.pem -noout -textSubject of certificate request should look like this (replace domain.by and Name Surname):
chmod 400 userkey.pemIf You suspect Your key has been compromised, please contact CA or RA.
You will need a host certificate if You intend to make Your computing resources available on BalticGrid.
The procedure is similar to Requesting a User Certificate. The differences are:
wget http://ca.grid.by/misc/BelarusianGridCA-host.cnf
openssl req -new -config BelarusianGridCA-host.cnf -out host-certrequest.out \
-sha1 -nodes
chmod 400 private_host_key.pemCertificate subject should look like this:
IMPORTANT: in most cases You need decrypted hostkey.pem for grid middleware. Please set appropriate permissions on hostkey.pem to prevent unauthorized access. If You noticed Your hostkey.pem is encrypted, see hints for description how to decrypt keys.
cd
mkdir newcert
cd newcert
wget http://ca.grid.by/misc/BelarusianGridCA-user.cnf
or
wget http://ca.grid.by/misc/BelarusianGridCA-host.cnf (for host certificates)
openssl req -new -config BelarusianGridCA-user.cnf -out usercert_request.pem -sha1
openssl req -in usercert_request.pem -noout -textSubject of certificate request should look like this (replace domain.by and Name Surname):
chmod 400 userkey.pemIf You suspect Your key has been compromised, please contact CA or RA.
cd
openssl smime -sign -in newcert/usercert_request.pem -out \
newcert/usercert_request.smime -signer .globus/usercert.pem \
-inkey .globus/userkey.pem
To show certificate request in plain text:
openssl req -in user-certrequest.out -noout -text
To show certificate in plain text:
openssl x509 -in $HOME/.globus/usercert.pem -noout -text
To convert certificate from PEM to PKCS12 format (if You wish to import it to Your web browser):
openssl pkcs12 -export -in usercert.pem -inkey userkey.pem \
-descert -out $HOME/certificate.p12
To decrypt private keyfile (this step may be required for host keys, because usually there is no one to enter password when services using host keys are starting):
openssl rsa -in key.pem -out key-decrypted.pem
To encrypt private key or to change private key password:
openssl rsa -des -in key.pem -out key-encrypted.pem
To sign your new request with your user certificate:
openssl smime -sign -in newcert/usercert_request.pem -out \
newcert/usercert_request.smime -signer .globus/usercert.pem \
-inkey .globus/userkey.pem
If You have questions or comments related to information presented on this page please feel free to contact ca@newman.bas-net.by.