{"id":1384,"date":"2026-02-05T18:40:02","date_gmt":"2026-02-05T18:40:02","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1384"},"modified":"2026-02-10T12:07:47","modified_gmt":"2026-02-10T12:07:47","slug":"included-certificate-functions","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/included-certificate-functions\/","title":{"rendered":"Included Certificate Functions"},"content":{"rendered":"<p>Mwnci openssl certificate functions are not part of the builtin functions. They can be loaded with:<\/p>\n<pre>include(\"certs\")<\/pre>\n<h2>Functions<\/h2>\n<div class=\"table-wrap\">\n<table class=\"confluenceTable\">\n<tbody>\n<tr>\n<td class=\"confluenceTd\"><strong>Command<\/strong><\/td>\n<td class=\"confluenceTd\"><strong>Definition<\/strong><\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-certexpiredays-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">certexpiredays()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns an integer representing the amount of days left before the certificate expires. <\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-certsans-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">certsans()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a list of all domains covered by the certificate. <\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-certtojson-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">certtojson()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a hash of certificate details. <\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-extractcert-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">extractcert()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns an array of encoded certificates strings. <\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-readsitecert-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">readsitecert()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns an array of the encrypted certificate from the given domain<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-readsitecert-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">readsitechain()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns an array of the encrypted certificate chain from the given domain.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-sitecertexp-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">sitecertexp()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns an integer representing the amount of days left before the certificate expires for the given domain.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-sitecertsans-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">sitecertsans()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a list of all domains covered by the certificate for the given domin.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Mwnci openssl certificate functions are not part of the builtin functions. They can be loaded with: include(&#8220;certs&#8221;) Functions Command Definition certexpiredays() Returns an integer representing the amount of days left before the certificate expires. certsans() Returns a list of all domains covered by the certificate. certtojson() Returns a hash of certificate details. extractcert() Returns an &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/included-certificate-functions\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Included Certificate Functions&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1384","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1384"}],"version-history":[{"count":5,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1384\/revisions"}],"predecessor-version":[{"id":1409,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1384\/revisions\/1409"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}