Openssl Command Line Issues

Edit: My problems did not solve, but I moved on to new and more exciting problems.
Leaving this here if someone is insightful, it will help someone who stumbles upon this question in the future.

Hi, I am trying to send an encrypted email with php in Outlook. Therefore, I need to create a certificate to import into Outlook. I had no problems creating a key set using the openssl and CA.pl script that comes with it, but when I try to run a command to create a PKCS12 file for import into Outlook, it complains about the missing directory "demoCA", It looks like that this directory is part of openssl and refers to the openssl configuration ... but I have no idea where it is. I searched the drive in many ways from grep to spotlight (on os x, although I really did not expect the spotlight to find anything), and couldn't think of anything.

The command I tried to run:

$ openssl ca -cert newcert.pem -ss_cert newcert.pem
Using configuration from /sw/etc/ssl/openssl.cnf
./demoCA/private/cakey.pem: No such file or directory trying to load CA private key
19918:error:02001002:system library:fopen:No such file or directory:bss_file.c:245:fopen('./demoCA/private/cakey.pem','r')
19918:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:247:

I'm a little noob when it comes to encryption / SSL, so I might be missing something stupid (I'm sure if it is, haha).

+5
1

CA script, , openssl. openssl Cygwin Windows Unix. , bash ( perl- ).

$ ./CA.sh -newca

demoCA CA . , CA (CN, OU ..) CA .

.

$ ./CA.sh -newreq

. , CA.sh(newreq.pem). , CN (Common Name) , .

, .

$ ./CA.sh -sign

newcert.pem, . , PFX P12, Microsoft CSP.

newreq.pem newcert.pem .

$ cat newreq.pem > keypair.pem
$ cat newcert.pem >> keypair.pem

P12 openssl ( script). , , ( p12).

$ openssl pkcs12 -export -in keypair.pem  -out mykeypair.p12
Enter pass phrase for keypair.pem:
Enter Export Password:
Verifying - Enter Export Password:

Et voilà. PKCS # 12, Windows ( , , Outlook ). CA ( cacert.pem cacert.cer, demoCA , ).

+6

All Articles