Error Opening Ca Certificate ./democa/cacert.pem
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 Error opening CA private key on Ubuntu up vote 1 down vote favorite 1 I am trying to create a self-signed certificate using OpenSSL on Ubuntu 14.04. When I enter the command openssl ca -in tempreq.pem -out server_crt.pem, I get the following error: Using configuration from /root/myCA/caconfig.cnf **Error opening CA private key** ~/myCA/private/cakey.pem 139754719667872:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('~/myCA/private/cakey.pem','r') 139754719667872:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: unable to load CA private key I have already verified that nano ~/myCA/private/cakey.pem command opens the cakey.pem file, and that the read permission for this file is enabled. Any help will be appreciated. Thanks! ubuntu openssl self-signed share|improve this question edited Jan 13 '15 at 19:41 jww 35.4k21112224 asked Jan 11 '15 at 19:31 Neo_999 816 1 This question appears to be off-topic because it is not about programming or development. Perhaps Super User or Ubuntu Stack Exchange would be a better place to ask. –jww Jan 13 '15 at 19:40 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted You seem to be running as root, check that you haven't accidentally followed the instructions on the ubuntu.com OpenSSL article too literally and set the dir param in /root/myCA/caconfig.cnf to /home/root/myCA. This as the root home dir differs from all other home directories by residing in the top folder. So if you have set it to /home/root/myCA, that is not valid, you have to change it to /root/myCA. Edit (as this was the problem): Using "~" in the configuration might not work as it might not be expanded properly by openssl. If you are, try use absolute paths instead. share|improve this answer edited Feb 6 '15 at 22:07 answered Jan 11 '15 at 19:48 Nicklas Börjesson 313110 Thank you for the reply. Yes, I have taken this into account. I get this
and to help other users in the Splunk community with their own questions. This quick tutorial will help you get started with key features to help you find the answers you need. You will receive 10 karma points upon successful completion! Get Started Skip Tutorial Splunk.com Documentation Splunkbase Answers Wiki Blogs Developers Sign Up Sign in FAQ Refine your search: Questions Apps Users Tags Search Home Answers ask a question Badges Tags Users Welcome to Splunk Answers! Not what you were looking for? http://stackoverflow.com/questions/27891193/error-opening-ca-private-key-on-ubuntu Refine your search. Search Error opening CA Certificate ca.pem 0 I just downloaded a new 6.1 copy of Splunk for FreeBSD. After a wget download and running (tar zxvf splunk-6.1.1-207789-freebsd-7.3-amd64.tgz), I felt I was ready to start Splunk. So I ran ( /opt/splunk/bin/splunk start) and this happened < SEE BELOW >. Any ideas of what might be going on with https://answers.splunk.com/answers/137607/error-opening-ca-certificate-ca-pem.html the ca.pem file issue? I recently upgraded openssl to v1.0.1g. Could that be causing me issues? Or is there some step I've overlooked during the install? Thanks, Splunk> Like an F-18, bro. Checking prerequisites... Checking http port [8000]: open Checking mgmt port [8089]: open Checking configuration... Done. Checking critical directories... Done Checking indexes... Validated: _audit _blocksignature _internal _introspection _thefishbucket history main summary Done New certs have been generated in '/opt/splunk/etc/auth'. Checking filesystem compatibility... Done Checking conf files for problems... Done All preliminary checks passed. Starting splunk server daemon (splunkd)... Done Starting splunkweb... Generating certs for splunkweb server Generating a 1024 bit RSA private key .....++++++ ...........................++++++ writing new private key to 'privKeySecure.pem' Signature ok subject=/CN=DOMAIN.NAME/O=SplunkUser Error opening CA Certificate ca.pem 34377709224:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('ca.pem','r') 34377709224:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: unable to load certificate Command failed (ret=1), exiting. install certificate ca.pem Question by albyva May 26, 2014 at 05:03 PM 324 ● 3 ● 8 ● 7 Most Recent Activity: Edited by aileencita 20 ● 2 People who like this Close 0 Comment 10 |10000 characters needed characters lef
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking CA.certs Errors User Name Remember Me? Password http://www.linuxquestions.org/questions/linux-wireless-networking-41/ca-certs-errors-637028/ Linux - Wireless Networking This forum is for the discussion of wireless networking https://forum.openwrt.org/viewtopic.php?id=11790 in Linux. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely error opening free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a error opening ca problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 04-22-2008, 08:44 AM #1 saman Member Registered: Oct 2007 Posts: 49 Rep: CA.certs Errors Anyone could help here the ./CA.certs errors ################## create CA use just created 'newreq.pem' private key as filename CA.pl -newca ################## ################## exporting ROOT CA CA.pl -newreq CA.pl -signreq openssl pkcs12 -export -in demoCA/cacert.pem -inkey newreq.pem -out root.pem openssl pkcs12 -in root.cer
CA Key problem Pages 1 You must login or register to post a reply RSS topic feed Posts: 6 1 Topic by joecanadian 2007-07-25 22:32:39 joecanadian Member Offline Registered: 2007-03-27 Posts: 7 Topic: openvpn wrt54gs v2 making CA Key problem I am trying to setup a routed openvpn serveron my router. I also run a asterisk server (so you will see the ports in my firewall)I am getting a error when I try to setup# openssl ca -out server.crt -in server.csrUsing configuration from /etc/ssl/openssl.cnfError opening CA private key ./demoCA/private/cakey.pem1056:error:02001002:lib(2):func(1):reason(2):NA:0:fopen('./demoCA/private/cakey.pem','r')1056:error:20074002:lib(32):func(116):reason(2):NA:0:unable to load CA private key 2 Reply by ciscostu 2007-07-26 14:18:00 ciscostu Member Offline From: Gaithersburg, MD Registered: 2006-04-08 Posts: 213 Re: openvpn wrt54gs v2 making CA Key problem Had/have you already created the CA cert/key?If yes, make sure the path is correct in /etc/ssl/openssl.cnf-[ CA_default ] dir = ./demoCA # Where everything is keptIf no, create them with these commands-cd /etc/ssl mkdir -p demoCA/private mkdir -p demoCA/certs openssl req -new -x509 -keyout demoCA/private/cakey.pem -out demoCA/certs/cacert.pem -days 3650 -config openssl.cnfHope this helps,Charlie PacketProtector- OpenWrt + FreeRADIUS + OpenVPN + Snort + DansGuardian + ClamAV ciscostu's Website 3 Reply by joecanadian 2007-07-26 23:22:58 joecanadian Member Offline Registered: 2007-03-27 Posts: 7 Re: openvpn wrt54gs v2 making CA Key problem maybe I am supposta make the dir directly where it actualy is?[ CA_default ]dir = /etc/demoCA # Where everything is keptthis is what I got from that.. though lest It asked for a password it did something though disappointing that it died after that ugh...be nice if someone had a nice image of openwrt pre setup for a muilti user setup.. ready to go.. root@domo:/etc# openssl ca -out server.crt -in server.csrUsing