summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/luaossl.pdfbin284248 -> 284785 bytes
-rw-r--r--doc/luaossl.tex4
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf
index e310cbe..c2b2418 100644
--- a/doc/luaossl.pdf
+++ b/doc/luaossl.pdf
Binary files differ
diff --git a/doc/luaossl.tex b/doc/luaossl.tex
index c8917d7..b7b8c15 100644
--- a/doc/luaossl.tex
+++ b/doc/luaossl.tex
@@ -487,6 +487,10 @@ Returns the public key component as an \module{openssl.pkey} object.
487 487
488Sets the public key component referenced by the \module{openssl.pkey} object $key$. 488Sets the public key component referenced by the \module{openssl.pkey} object $key$.
489 489
490\subsubsection[\fn{x509:getPublicKeyDigest}]{\fn{x509:getPublicKeyDigest([$type$])}}
491
492Returns the digest of the public key as a binary string. $type$ is an optional string describing the digest type, and defaults to ``sha1''.
493
490\subsubsection[\fn{x509:sign}]{\fn{x509:sign($key$ [, $type$])}} 494\subsubsection[\fn{x509:sign}]{\fn{x509:sign($key$ [, $type$])}}
491 495
492Signs and updates the instance certificate using the \module{openssl.pkey} $key$. $type$ is an optional string describing the digest type. See \module{pkey:sign}, regarding which types of digests are valid. If $type$ is omitted than a default type is used---``sha1'' for RSA keys, ``dss1'' for DSA keys, and ``ecdsa-with-SHA1'' for EC keys. 496Signs and updates the instance certificate using the \module{openssl.pkey} $key$. $type$ is an optional string describing the digest type. See \module{pkey:sign}, regarding which types of digests are valid. If $type$ is omitted than a default type is used---``sha1'' for RSA keys, ``dss1'' for DSA keys, and ``ecdsa-with-SHA1'' for EC keys.