[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Support for ssl with client certificates



Hi!

Please keep me in the cc as I'm not subscribed to this list.

I've configured my w3m to authenticate itself with a client
certificate by setting the configuration options in ~/.w3m/config.

This worked at the shell but in emacs-w3m the process hangs in the
passphrase Dialog.

I found this can be remedied with the following quick fix (which might
not do the right thing[TM] but could be a start for adding proper
client certificate support to emacs-w3m):

------
Index: w3m-proc.el
===================================================================
RCS file: /storage/cvsroot/emacs-w3m/w3m-proc.el,v
retrieving revision 1.59
diff -b -w -r1.59 w3m-proc.el
98c98
<
---
> (defvar w3m-process-ssl-passphrase nil "Passphrase for the client certificate.")
595a596,605
>                   "Enter PEM pass phrase:")
>                  (= (match-end 0) (point-max)))
>             (when (or (match-beginning 1)
>                       (not (stringp w3m-process-ssl-passphrase)))
>               (setq w3m-process-ssl-passphrase (read-passwd "PEM pass phrase: ")))
>             (ignore-errors
>               (process-send-string process
>                                    (concat w3m-process-ssl-passphrase "\n"))
>               (delete-region (point-min) (point-max))))
>             ((and (looking-at

-----

Kind regards!
     FDF
-- 
Friedrich Delgado Friedrichs (IT-Services), DFN-CERT Services GmbH

DFN-CERT Services GmbH, https://www.dfn-cert.de, Phone +49 40 808077-555
Sitz / Register: Hamburg, AG Hamburg, HRB 88805, Ust-IdNr.: DE 232129737

Attachment: smime.p7s
Description: S/MIME cryptographic signature