<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 2: Check key validity from command line</title><link>https://sourceforge.net/p/phpki/support-requests/2/</link><description>Recent changes to 2: Check key validity from command line</description><atom:link href="https://sourceforge.net/p/phpki/support-requests/2/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 13 Dec 2013 16:15:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpki/support-requests/2/feed.rss" rel="self" type="application/rss+xml"/><item><title>#2 Check key validity from command line</title><link>https://sourceforge.net/p/phpki/support-requests/2/?limit=25#84fe</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thibault Capdevielle</dc:creator><pubDate>Fri, 13 Dec 2013 16:15:53 -0000</pubDate><guid>https://sourceforge.net5fe7e1dc6a1aefeb233321c0a8daa304dcce990b</guid></item><item><title>Check key validity from command line</title><link>https://sourceforge.net/p/phpki/support-requests/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thibault Capdevielle</dc:creator><pubDate>Fri, 13 Dec 2013 15:08:15 -0000</pubDate><guid>https://sourceforge.nete8da1a8ff75de1e4827fa564d39f1641b45a82f5</guid></item></channel></rss>