stud icon indicating copy to clipboard operation
stud copied to clipboard

How to give stud the right cert/pem

Open hdavy2002 opened this issue 13 years ago • 1 comments

Greetings, I am a newbee. I cannot figure the commands out. This is what I am giving stud.

root@302261:/keys# stud -b 192.168.1.12,3128 -f almostnatural.us,8443 /keys/almostnatural_us.pem

In the keys folder, I have:

root@302261:/keys# ls almostnatural_us.ca almostnatural_us.pem myserver.key

When I execute it, I get: root@302261:/keys# stud -b 192.168.1.12,3128 -f almostnatural.us,8443 /keys/almostnatural_us.pem 3074111112:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:696:Expecting: ANY PRIVATE KEY 3074111112:error:140B3009:SSL routines:SSL_CTX_use_RSAPrivateKey_file:PEM lib:ssl_rsa.c:587:

I am sure, I am doing everything wrong.

hdavy2002 avatar Jul 16 '12 10:07 hdavy2002

Judging from the age of this issue, I'm quite sure you'd have this figured out by now. However, the error you are facing seems to be the PEM missing the private key. Try appending the contents of the key file to your PEM; it should work.

alexnj avatar Sep 11 '12 16:09 alexnj