ALT Linux Bugzilla
– Attachment 3263 Details for
Bug 15480
[FR] Генерация сертификатов в PEM-формате.
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
make-pem.patch
makepem.patch (text/plain), 971 bytes, created by
Sir Raorn
on 2009-01-28 18:27:18 MSK
(
hide
)
Description:
make-pem.patch
Filename:
MIME Type:
Creator:
Sir Raorn
Created:
2009-01-28 18:27:18 MSK
Size:
971 bytes
patch
obsolete
>diff --git a/cert-sh-functions/cert-sh-functions b/cert-sh-functions/cert-sh-functions >index 96d41c3..953a912 100755 >--- a/cert-sh-functions/cert-sh-functions >+++ b/cert-sh-functions/cert-sh-functions >@@ -119,6 +119,23 @@ ssl_make_cert() > ssl_fatal 'Unable to create certificate' > } > >+#PEM certificate >+ >+ssl_check_pem() >+{ >+ [ -n "$1" -a -f "$SSL_KEYDIR/$1.pem" -a "$SSL_KEYDIR/$1.pem" -nt "$SSL_KEYDIR/$1.key" -a "$SSL_KEYDIR/$1.pem" -nt "$SSL_CERTDIR/$1.cert" ] >+} >+ >+ssl_make_pem() >+{ >+ ssl_check_certfile "$@" && return >+ [ -n "$1" ] || >+ ssl_fatal 'Insufficient arguments.' >+ >+ cat "$SSL_CERTDIR/$1.cert" "$SSL_KEYDIR/$1.key" > "$SSL_KEYDIR/$1.pem" || >+ ssl_fatal 'Unable to create PEM certificate' >+} >+ > #dh params > > ssl_check_dhparam() >@@ -163,4 +180,7 @@ ssl_generate() > > ssl_check_cert "$@" || > ssl_action ssl_make_cert "SSL self-signed certificate" "$@" >+ >+ ssl_check_pem "$@" || >+ ssl_action ssl_make_pem "SSL PEM certificate" "$@" > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15480
: 3263