What's new

Strange openssl behaviour / fopen error

slytho

Regular Contributor
Hi!

I am trying to set up an openssl script (also see http://forums.smallnetbuilder.com/showpost.php?p=89025&postcount=78), but performing the openssl command ends with a strange error message.

The openssl command is:
Code:
openssl smime -encrypt -aes256 public.pem -in plain.txt -out mail.txt
The whole thing is executed in the /jffs/configs directory for testing purposes. "plain.txt" is just an random plain text file in the same directory. "public.pem" is a public key file in PEM (=ascii) format, also located in the aforesaid directory.

The openssl error message is:
Code:
Error opening recipient certificate file public.pem
718430992:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('public.pem','r')
718430992:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
unable to load certificate

Since it includes things like "system library" and "fopen" I guess it might be caused by some router openssl problem and not the directive? :confused: Can someone help?
 
Hi!

I am trying to set up an openssl script (also see http://forums.smallnetbuilder.com/showpost.php?p=89025&postcount=78), but performing the openssl command ends with a strange error message.

The openssl command is:
Code:
openssl smime -encrypt -aes256 public.pem -in plain.txt -out mail.txt
The whole thing is executed in the /jffs/configs directory for testing purposes. "plain.txt" is just an random plain text file in the same directory. "public.pem" is a public key file in PEM (=ascii) format, also located in the aforesaid directory.

The openssl error message is:
Code:
Error opening recipient certificate file public.pem
718430992:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('public.pem','r')
718430992:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
unable to load certificate

Since it includes things like "system library" and "fopen" I guess it might be caused by some router openssl problem and not the directive? :confused: Can someone help?

Based on the error message, it seems it's unable to find the public.pem file. Double-check the filename (remember that Linux is case-sensitive), and try specifying the full path, not just the filename.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top