How to make a private key to use for the E-commerce module?
The private key is necessary for using internet bank payment ability in your e-shop. In Linux type server follow this steps (Open-SSL must be installed in server):
1) mkdir private
2) openssl req -new -x509 -keyout private/cakey.pem -out cacert.pem -days 365
You will be asked for your 'Country Name' (e.g. 'EE'), 'State or Province Name' (e.g. 'Harjumaa'), 'Locality Name' (e.g. Tallinn), 'Organization Name' (e.g. Firma OÜ), 'Organizational Unit Name' (leave empty), 'Common Name' (e.g. John Doe), 'Email Address' (e.g. john@doe.ee) and a password. (NB! Remember this password). Now you have made an encrypted private key. This needs to be converted to 'raw' format.
3) cp private/cakey.pem private/cakey.pem.enc
4) openssl rsa -in private/cakey.pem.enc -out private/cakey.pem
You have to type your password to make the key. 'private/cakey.pem' is now the private key to use for the E-commerce module.
NB! Remember to keep your private key secret! (Don't show it to anyone). Never hold the prvate key in some folder under the webserver document root!
RSS