Can't load certificate

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












When I am trying to sign my cert I keep getting this error



[root@sls0626 CA]# openssl ca -out newcerts/testcert.pem -infiles 
requests/testcsr.pem
Using configuration from /etc/pki/tls/openssl.cnf
unable to load certificate
139675024402320:error:0906D06C:PEM routines:PEM_read_bio:no start
line:pem_lib.c:707:Expecting: TRUSTED CERTIFICATE


I have check that the cacert.pem is not corrupted, serial has number in the file, permissions are 755



What would be causing this problem?







share|improve this question

















  • 1




    no start line message means openssl counldn't find headers ----- BEGIN RSA ... -----. I bet that your requests/testcsr.pem is ill-formed.
    – Kamil Cuk
    Jun 22 at 15:47










  • the CSR has -----BEGIN CERTIFICATE REQUEST----- -----END CERTIFICATE REQUEST-----
    – user3071814
    Jun 22 at 19:29











  • The file /etc/pki/tls/openssl.cnf will have a section for the CA, within which should be an option called certificates. Check that the file pointed to by this option is well formed as @KamilCuk suggests.
    – garethTheRed
    Jun 24 at 6:59











  • This is what is in the openssl.cnf certificate = $dir/cacert.pem # The CA certificate [root@xxxxxxx CA]# ls -l total 12 -rwxr-xr-x. 1 root root 1675 Jun 21 14:09 cacert.pem -rwxr-xr-x. 1 root root 3604 Jun 22 14:13 CA.pem drwxr-xr-x. 2 root root 6 Jun 20 11:29 certs drwxr-xr-x. 2 root root 6 Dec 13 2017 crl -rwxr-xr-x. 1 root root 0 Jun 21 11:25 index.txt drwxr-xr-x. 2 root root 6 Jun 21 14:03 newcerts drwxr-xr-x. 2 root root 46 Jun 22 13:53 private drwxr-xr-x. 2 root root 24 Jun 22 13:34 requests -rwxr-xr-x. 1 root root 5 Jun 21 11:26 serial
    – user3071814
    Jun 25 at 12:54















up vote
0
down vote

favorite












When I am trying to sign my cert I keep getting this error



[root@sls0626 CA]# openssl ca -out newcerts/testcert.pem -infiles 
requests/testcsr.pem
Using configuration from /etc/pki/tls/openssl.cnf
unable to load certificate
139675024402320:error:0906D06C:PEM routines:PEM_read_bio:no start
line:pem_lib.c:707:Expecting: TRUSTED CERTIFICATE


I have check that the cacert.pem is not corrupted, serial has number in the file, permissions are 755



What would be causing this problem?







share|improve this question

















  • 1




    no start line message means openssl counldn't find headers ----- BEGIN RSA ... -----. I bet that your requests/testcsr.pem is ill-formed.
    – Kamil Cuk
    Jun 22 at 15:47










  • the CSR has -----BEGIN CERTIFICATE REQUEST----- -----END CERTIFICATE REQUEST-----
    – user3071814
    Jun 22 at 19:29











  • The file /etc/pki/tls/openssl.cnf will have a section for the CA, within which should be an option called certificates. Check that the file pointed to by this option is well formed as @KamilCuk suggests.
    – garethTheRed
    Jun 24 at 6:59











  • This is what is in the openssl.cnf certificate = $dir/cacert.pem # The CA certificate [root@xxxxxxx CA]# ls -l total 12 -rwxr-xr-x. 1 root root 1675 Jun 21 14:09 cacert.pem -rwxr-xr-x. 1 root root 3604 Jun 22 14:13 CA.pem drwxr-xr-x. 2 root root 6 Jun 20 11:29 certs drwxr-xr-x. 2 root root 6 Dec 13 2017 crl -rwxr-xr-x. 1 root root 0 Jun 21 11:25 index.txt drwxr-xr-x. 2 root root 6 Jun 21 14:03 newcerts drwxr-xr-x. 2 root root 46 Jun 22 13:53 private drwxr-xr-x. 2 root root 24 Jun 22 13:34 requests -rwxr-xr-x. 1 root root 5 Jun 21 11:26 serial
    – user3071814
    Jun 25 at 12:54













up vote
0
down vote

favorite









up vote
0
down vote

favorite











When I am trying to sign my cert I keep getting this error



[root@sls0626 CA]# openssl ca -out newcerts/testcert.pem -infiles 
requests/testcsr.pem
Using configuration from /etc/pki/tls/openssl.cnf
unable to load certificate
139675024402320:error:0906D06C:PEM routines:PEM_read_bio:no start
line:pem_lib.c:707:Expecting: TRUSTED CERTIFICATE


I have check that the cacert.pem is not corrupted, serial has number in the file, permissions are 755



What would be causing this problem?







share|improve this question













When I am trying to sign my cert I keep getting this error



[root@sls0626 CA]# openssl ca -out newcerts/testcert.pem -infiles 
requests/testcsr.pem
Using configuration from /etc/pki/tls/openssl.cnf
unable to load certificate
139675024402320:error:0906D06C:PEM routines:PEM_read_bio:no start
line:pem_lib.c:707:Expecting: TRUSTED CERTIFICATE


I have check that the cacert.pem is not corrupted, serial has number in the file, permissions are 755



What would be causing this problem?









share|improve this question












share|improve this question




share|improve this question








edited Jun 22 at 15:27









Debian_yadav

8322522




8322522









asked Jun 22 at 13:56









user3071814

1




1







  • 1




    no start line message means openssl counldn't find headers ----- BEGIN RSA ... -----. I bet that your requests/testcsr.pem is ill-formed.
    – Kamil Cuk
    Jun 22 at 15:47










  • the CSR has -----BEGIN CERTIFICATE REQUEST----- -----END CERTIFICATE REQUEST-----
    – user3071814
    Jun 22 at 19:29











  • The file /etc/pki/tls/openssl.cnf will have a section for the CA, within which should be an option called certificates. Check that the file pointed to by this option is well formed as @KamilCuk suggests.
    – garethTheRed
    Jun 24 at 6:59











  • This is what is in the openssl.cnf certificate = $dir/cacert.pem # The CA certificate [root@xxxxxxx CA]# ls -l total 12 -rwxr-xr-x. 1 root root 1675 Jun 21 14:09 cacert.pem -rwxr-xr-x. 1 root root 3604 Jun 22 14:13 CA.pem drwxr-xr-x. 2 root root 6 Jun 20 11:29 certs drwxr-xr-x. 2 root root 6 Dec 13 2017 crl -rwxr-xr-x. 1 root root 0 Jun 21 11:25 index.txt drwxr-xr-x. 2 root root 6 Jun 21 14:03 newcerts drwxr-xr-x. 2 root root 46 Jun 22 13:53 private drwxr-xr-x. 2 root root 24 Jun 22 13:34 requests -rwxr-xr-x. 1 root root 5 Jun 21 11:26 serial
    – user3071814
    Jun 25 at 12:54













  • 1




    no start line message means openssl counldn't find headers ----- BEGIN RSA ... -----. I bet that your requests/testcsr.pem is ill-formed.
    – Kamil Cuk
    Jun 22 at 15:47










  • the CSR has -----BEGIN CERTIFICATE REQUEST----- -----END CERTIFICATE REQUEST-----
    – user3071814
    Jun 22 at 19:29











  • The file /etc/pki/tls/openssl.cnf will have a section for the CA, within which should be an option called certificates. Check that the file pointed to by this option is well formed as @KamilCuk suggests.
    – garethTheRed
    Jun 24 at 6:59











  • This is what is in the openssl.cnf certificate = $dir/cacert.pem # The CA certificate [root@xxxxxxx CA]# ls -l total 12 -rwxr-xr-x. 1 root root 1675 Jun 21 14:09 cacert.pem -rwxr-xr-x. 1 root root 3604 Jun 22 14:13 CA.pem drwxr-xr-x. 2 root root 6 Jun 20 11:29 certs drwxr-xr-x. 2 root root 6 Dec 13 2017 crl -rwxr-xr-x. 1 root root 0 Jun 21 11:25 index.txt drwxr-xr-x. 2 root root 6 Jun 21 14:03 newcerts drwxr-xr-x. 2 root root 46 Jun 22 13:53 private drwxr-xr-x. 2 root root 24 Jun 22 13:34 requests -rwxr-xr-x. 1 root root 5 Jun 21 11:26 serial
    – user3071814
    Jun 25 at 12:54








1




1




no start line message means openssl counldn't find headers ----- BEGIN RSA ... -----. I bet that your requests/testcsr.pem is ill-formed.
– Kamil Cuk
Jun 22 at 15:47




no start line message means openssl counldn't find headers ----- BEGIN RSA ... -----. I bet that your requests/testcsr.pem is ill-formed.
– Kamil Cuk
Jun 22 at 15:47












the CSR has -----BEGIN CERTIFICATE REQUEST----- -----END CERTIFICATE REQUEST-----
– user3071814
Jun 22 at 19:29





the CSR has -----BEGIN CERTIFICATE REQUEST----- -----END CERTIFICATE REQUEST-----
– user3071814
Jun 22 at 19:29













The file /etc/pki/tls/openssl.cnf will have a section for the CA, within which should be an option called certificates. Check that the file pointed to by this option is well formed as @KamilCuk suggests.
– garethTheRed
Jun 24 at 6:59





The file /etc/pki/tls/openssl.cnf will have a section for the CA, within which should be an option called certificates. Check that the file pointed to by this option is well formed as @KamilCuk suggests.
– garethTheRed
Jun 24 at 6:59













This is what is in the openssl.cnf certificate = $dir/cacert.pem # The CA certificate [root@xxxxxxx CA]# ls -l total 12 -rwxr-xr-x. 1 root root 1675 Jun 21 14:09 cacert.pem -rwxr-xr-x. 1 root root 3604 Jun 22 14:13 CA.pem drwxr-xr-x. 2 root root 6 Jun 20 11:29 certs drwxr-xr-x. 2 root root 6 Dec 13 2017 crl -rwxr-xr-x. 1 root root 0 Jun 21 11:25 index.txt drwxr-xr-x. 2 root root 6 Jun 21 14:03 newcerts drwxr-xr-x. 2 root root 46 Jun 22 13:53 private drwxr-xr-x. 2 root root 24 Jun 22 13:34 requests -rwxr-xr-x. 1 root root 5 Jun 21 11:26 serial
– user3071814
Jun 25 at 12:54





This is what is in the openssl.cnf certificate = $dir/cacert.pem # The CA certificate [root@xxxxxxx CA]# ls -l total 12 -rwxr-xr-x. 1 root root 1675 Jun 21 14:09 cacert.pem -rwxr-xr-x. 1 root root 3604 Jun 22 14:13 CA.pem drwxr-xr-x. 2 root root 6 Jun 20 11:29 certs drwxr-xr-x. 2 root root 6 Dec 13 2017 crl -rwxr-xr-x. 1 root root 0 Jun 21 11:25 index.txt drwxr-xr-x. 2 root root 6 Jun 21 14:03 newcerts drwxr-xr-x. 2 root root 46 Jun 22 13:53 private drwxr-xr-x. 2 root root 24 Jun 22 13:34 requests -rwxr-xr-x. 1 root root 5 Jun 21 11:26 serial
– user3071814
Jun 25 at 12:54
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451318%2fcant-load-certificate%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451318%2fcant-load-certificate%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)