<HTML ><HEAD ><TITLE >openssl_pkey_export</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual de PHP" HREF="index.html"><LINK REL="UP" TITLE="OpenSSL functions" HREF="ref.openssl.html"><LINK REL="PREVIOUS" TITLE="openssl_pkey_export_to_file" HREF="function.openssl-pkey-export-to-file.html"><LINK REL="NEXT" TITLE="openssl_pkey_get_private" HREF="function.openssl-pkey-get-private.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual de PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.openssl-pkey-export-to-file.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.openssl-pkey-get-private.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.openssl-pkey-export" ></A >openssl_pkey_export</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN56163" ></A ><P > (PHP 4 >= 4.2.0)</P >openssl_pkey_export -- Gets an exportable representation of a key into a string</DIV ><DIV CLASS="refsect1" ><A NAME="AEN56166" ></A ><H2 >Description</H2 >bool <B CLASS="methodname" >openssl_pkey_export</B > ( mixed key, string &out [, string passphrase [, array configargs]])<BR ></BR ><P > <B CLASS="function" >openssl_pkey_export()</B > exports <TT CLASS="parameter" ><I >key</I ></TT > as a PEM encoded string and stores it into <TT CLASS="parameter" ><I >out</I ></TT > (which is passed by reference). The key is optionally protected by <TT CLASS="parameter" ><I >passphrase</I ></TT >. <TT CLASS="parameter" ><I >configargs</I ></TT > can be used to fine-tune the export process by specifying and/or overriding options for the openssl configuration file. See <A HREF="function.openssl-csr-new.html" ><B CLASS="function" >openssl_csr_new()</B ></A > for more information about <TT CLASS="parameter" ><I >configargs</I ></TT >. Devuelve <TT CLASS="constant" ><B >TRUE</B ></TT > si todo fue bien, <TT CLASS="constant" ><B >FALSE</B ></TT > en caso de fallo. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Nota: </B > You need to have a valid <TT CLASS="filename" >openssl.cnf</TT > installed for this function to operate correctly. See the notes under <A HREF="ref.openssl.html#openssl.installation" >the installation section</A > for more information. </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.openssl-pkey-export-to-file.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Inicio</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.openssl-pkey-get-private.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >openssl_pkey_export_to_file</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.openssl.html" ACCESSKEY="U" >Subir</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >openssl_pkey_get_private</TD ></TR ></TABLE ></DIV ></BODY ></HTML >