Error On Line - 1 On Openssl.cnf
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up OpenSSL and error in reading openssl.conf file up vote 71 down vote favorite 26 I am running windows xp 32bit I just downloaded Openssl from the following URL and installed it. http://www.slproweb.com/products/Win32OpenSSL.html and then i tried to create a self signed certificate by using the following command openssl req -x509 -days 365 -newkey rsa:1024 -keyout hostkey.pem -nodes -out hostcert.pem then it started giving the following error Unable to load config info from /usr/local/ssl/openssl.cnf Then after googling sometime i changed the above command to openssl req -config C:\OpenSSL\bin\openssl.conf -x509 -days 365 -newkey rsa:1024 -keyout hostkey.pem -nodes -out hostcert.pem But now i get the following error in the command prompt error on line -1 of C:\OpenSSL\bin\openssl.conf 4220:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\bss_file.c:126:fopen('C:\OpenSSL\bin\openssl.conf','rb') 4220:error:2006D080:BIO routines:BIO_new_file:no such file:.\crypto\bio\bss_file.c:129: 4220:error:0E078072:configuration file routines:DEF_LOAD:no such file:.\crypto\conf\conf_def.c:197: Please help. Thanks in advance. windows configuration openssl environment-variables share|improve this question edited Mar 29 at 10:57 jww 35.4k21112224 asked Sep 9 '11 at 10:55 Sreeram 1,37242143 2 check exact filename: openssl.conf ---> openssl.cnf –Mark Oct 15 '14 at 22:33 1 the file extension on Windows is now .cfg. Also ensure that the file path specified (on the command line or in the environment variable OPENSSL_CONF) is not inside quotes. –tatx Aug 12 '15 at 9:08 add a comment| 11 Answers 11 active oldest votes up vote 93 down vote On Windows you can also set the environment property OPENSSL_CONF. For example from the commandline you can type: set OPENSSL_CONF=c:/libs/openssl-0.9.8k/openssl.cnf to validate it you can type: echo %OPENSSL_CONF% You can also set it as part of the computer's environmental variables so all users and services have it available by default. See, for example, Environment variables in Windows NT and H
(CSR) file, an error similar to the following might occur:
many other uses for ssl certificates, such as encrypting email or digitally signing documents. You don't have to pay a certificate authority, such as Verisign, because http://www.flatmtn.com/article/setting-openssl-create-certificates you can use the OpenSSL package to create your own certificates. I http://forums.fedoraforum.org/showthread.php?t=115564 do not cover the installation of OpenSSL here and I assume you know at least how to change directories, move files, use an editor, and other basics from the command-line. Note: The author of this page, and owner of this web site, is not to be held liable for any damage error on or trouble arising from following these directions. You are responsible for your own security, use, and creation of certificates. Quick steps: Create a directory. Create two subdirectories. Create a database to keep track of each certificate signed. Make a custom config file for openssl to use. Create a root certificate. Installing the root certificate for use. Tips. Creating certificates pages. Note: While this document error on line covers OpenSSL under Linux, Windows-only folks can use the Win32 OpenSSL project. I found GOSSL and CertWiz, GUIs for Windows, after a quick search. I am running Red Hat Linux 8.0 and openssl 0.9.x. If you have an interal box running Apache web server with PHP and the OpenSSL libraries installed, you could also use PHPki. I would not use PHPki for creating certificates on a publicly accessable server, because your root private certificate must be installed on that server (security risk). [Note: I found it not too hard to migrate manually to PHPki after already having created some certificates from the command line. Also you must have short tags enabled in your php.ini.] Only command line steps will be covered here. 1) Create a directory Let's call it sslcert: mkdir sslcert Now protect that directory so only the user you are running as (and root) can access it: chmod 0700 sslcert 2) Create two subdirectories Cd into the first directory and make two subdirectories. Let's call them certs and private. cd sslcert mkdir certs private 3) Create a database to keep track of each certificate signed Type: e
Common F23 Bugs Common F24 Bugs Communicate with Fedora The Documents Bug Reports Fedora Update System (Bodhi) Fedora Build System (Koji) Official Spins FedoraForum.org > Fedora 23/24 > Using Fedora OpenVPN "error on line -1 of openssl.cnf" FedoraForum Search User Name Remember Me? Password Forgot Password? Join Us! Register All Albums FAQ Today's Posts Search Using Fedora General support for current versions. Ask questions about Fedora that do not belong in any other forum. Google™ Search FedoraForum Search Red Hat Bugzilla Search Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Search this Thread Display Modes #1 30th June 2006, 11:04 PM mpmackenna Offline Registered User Join Date: May 2006 Location: Bettendorf, IA Age: 41 Posts: 18 OpenVPN "error on line -1 of openssl.cnf" I am new to Linux and I am trying to install an OpenVPN server on Redhat 9. I know it's not Fedora, but I thought maybe I could get some help here anyways since the two are closely related. My kernel version is 2.4.20-8. I was walking through the step by step install instructions from http://openvpn.net/howto.html. When I got to the step of running the command ./build-ca I get the message "error on line -1 of openssl.cnf 7834:error:02001002:system library:fopen:No such file or directory:bss_file.c:104:fopen('openssl.cnf','rb') 7834:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:107: 7834:error:0E064072:configuration file routinesONF_load:no such file:conf_def.c:197: ". I looked at my openssl.cnf file but I couldn't make much sense of it. Anyone know what that error means and how I can resolve it? Thanks in advance. Mike __________________ Mike Registered user# 416500 mpmackenna View Public Profile Find all posts by mpmackenna Tags openvpn « Previous Thread | Next Thread » Thread Tools Show Printable Version Dis