📄 function.openssl-x509-parse.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Parse an X509 certificate and return the information as an array</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-x509-free.html">openssl_x509_free</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-x509-read.html">openssl_x509_read</a></div> <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.openssl-x509-parse" class="refentry"> <div class="refnamediv"> <h1 class="refname">openssl_x509_parse</h1> <p class="verinfo">(PHP 4 >= 4.0.6, PHP 5)</p><p class="refpurpose"><span class="refname">openssl_x509_parse</span> — <span class="dc-title">Parse an X509 certificate and return the information as an array</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><b><b>openssl_x509_parse</b></b></span> ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$x509cert</tt></span> [, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$shortnames</tt></span> ] )</div> <p class="para rdfs-comment"> <b>openssl_x509_parse()</b> returns information about the supplied <i><tt class="parameter">x509cert</tt></i>, including fields such as subject name, issuer name, purposes, valid from and valid to dates etc. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">x509cert</tt></i></span> <dd> <p class="para"> </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">shortnames</tt></i></span> <dd> <p class="para"> <i><tt class="parameter">shortnames</tt></i> controls how the data is indexed in the array - if <i><tt class="parameter">shortnames</tt></i> is <b><tt>TRUE</tt></b> (the default) then fields will be indexed with the short name form, otherwise, the long name form will be used - e.g.: CN is the shortname form of commonName. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> <em class="emphasis">The structure of the returned data is (deliberately) not yet documented, as it is still subject to change.</em> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-x509-free.html">openssl_x509_free</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-x509-read.html">openssl_x509_read</a></div> <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -