Error trying to create self signed certificate using openssl toolkit
Posted on 2009-07-02
I'm new to the administration side of things and struggling a bit to resolve my current obstacle.
Trying to create a local self signed certificate to test a payment gateway to be used on a e-commerce project, build in PHP (5.2) and running on Apache (2.2.11). Everything was installed through the xampp installer which included SSL.
To do this I've tried executing the following example commands through the openssl toolkit (\xampp\apache\bin\openssl.exe):
genrsa -des3 -out server.key 1024
x509 -reg -days 365 -in example.csr -signkey server.key -out example.crt
- but get: example.csr: No such file or directory error in x509
The logical question would be where is it looking for the file? In the ..\bin dir, I'm running it from, or in the ..\conf dir where the ssl folders are?
Is it not supposed to created or do I have to create it first?
Some direction would greatly be appreciated.