<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: Check key validity from command line</title><link href="https://sourceforge.net/p/phpki/support-requests/2/" rel="alternate"/><link href="https://sourceforge.net/p/phpki/support-requests/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpki/support-requests/2/</id><updated>2013-12-13T16:15:53.797000Z</updated><subtitle>Recent changes to 2: Check key validity from command line</subtitle><entry><title>#2 Check key validity from command line</title><link href="https://sourceforge.net/p/phpki/support-requests/2/?limit=25#84fe" rel="alternate"/><published>2013-12-13T16:15:53.797000Z</published><updated>2013-12-13T16:15:53.797000Z</updated><author><name>Thibault Capdevielle</name><uri>https://sourceforge.net/u/theblackstorm/</uri></author><id>https://sourceforge.net5fe7e1dc6a1aefeb233321c0a8daa304dcce990b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ok, i found my problem.. we are checking the key file and not the certificate file.&lt;/p&gt;
&lt;p&gt;All are working now.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Check key validity from command line</title><link href="https://sourceforge.net/p/phpki/support-requests/2/" rel="alternate"/><published>2013-12-13T15:08:15.858000Z</published><updated>2013-12-13T15:08:15.858000Z</updated><author><name>Thibault Capdevielle</name><uri>https://sourceforge.net/u/theblackstorm/</uri></author><id>https://sourceforge.nete8da1a8ff75de1e4827fa564d39f1641b45a82f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am using Phpki 0.83 and all are working fine but my team monitor the certificate validity with the original openssl command, and we have a nagios software to alarm us when the certificate will expire.&lt;/p&gt;
&lt;p&gt;Unfortunatly, when we try to check the certificate we have an issue like that :&lt;/p&gt;
&lt;p&gt;root@debian:/etc/phpki-store/CA/private# openssl x509 -in 100001-key.pem -text&lt;br /&gt;
unable to load certificate&lt;br /&gt;
140099472094888:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE&lt;/p&gt;
&lt;p&gt;After some search with google, it's appear the certificate is not a PEM certificate... so i try to add a DER type to this command :&lt;/p&gt;
&lt;p&gt;root@debian:/etc/phpki-store/CA/private# openssl x509 -in 100001-key.pem -inform der -text&lt;br /&gt;
unable to load certificate&lt;br /&gt;
139695159256744:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1319:&lt;br /&gt;
139695159256744:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:381:Type=X509&lt;/p&gt;
&lt;p&gt;but google say this error is generate with a wrong format...&lt;/p&gt;
&lt;p&gt;So my question : have you find another way to check the certificate enddate from command line please ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>