Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#13265 closed New Feature (fixed)

Allow to run tests over secure connection (HTTPS)

Reported by: Artur Delura Owned by: Artur Delura
Priority: Normal Milestone: CKEditor 4.5.3
Component: General Version:
Keywords: Cc:

Description

We have to wait for closing https://github.com/benderjs/benderjs/issues/208. To finish this task we need to add certificate files and define options in config.

Change History (6)

comment:1 Changed 9 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 9 years ago by Artur Delura

Owner: set to Artur Delura
Status: confirmedreview

Changes in branch:t/13265.

comment:3 Changed 9 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.4.8

We'll review it when new Bender's release with the feature is ready.

comment:4 Changed 9 years ago by Szymon Cofalik

I removed ignores from mathjax test files. If you configure Bender and Apache properly, you are able to get mathjax libs through SSL connection.

  1. Open .bender/bender.js
  2. Add mathJaxLibPath: '//<yourip>/<mathjaxpath>/2.2/MathJax.js?config=TeX-AMS_HTML' to the config. <yourip> is IP address of your computer, <mathjaxpath> is a path to your local mathjax library. If you already had a working configuration for older Bender.js version all you need to change is remove http: protocol.
  3. Be sure your Apache has OpenSSL installed. Mine had and it was already using 'Apache Haus' configuration. In my httpd.conf I had:
    <IfModule ssl_module>
    #Include conf/extra/httpd-ssl.conf
    Include conf/extra/httpd-ahssl.conf
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    
  4. Here is content of my httpd-ahssl.conf without comments. You can copy your httpd-ahssl.conf to a safe location and paste the following (remember to change dirs):
    Listen 443 https
    SSLProtocol all
    SSLCipherSuite ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH 
    SSLHonorCipherOrder On
    SSLPassPhraseDialog  builtin
    SSLSessionCache        "shmcb:${SRVROOT}/logs/ssl_scache(512000)"
    SSLSessionCacheTimeout  300
    AddType application/x-x509-ca-cert .crt
    AddType application/x-pkcs7-crl    .crl
    BrowserMatch "MSIE [2-5]" \
             nokeepalive ssl-unclean-shutdown \
             downgrade-1.0 force-response-1.0
    
    CustomLog "${SRVROOT}/logs/ssl_request.log" \
              "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
    
    <VirtualHost _default_:443>
      SSLEngine on
      ServerName localhost:443
      SSLCertificateFile "${SRVROOT}/conf/ssl/server.crt"
      SSLCertificateKeyFile "${SRVROOT}/conf/ssl/server.key"
      DocumentRoot "c:/cks"
    
    	CustomLog "${SRVROOT}/logs/ssl_request.log" \
              "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
    	<Directory "c:/cks">
    		Options Indexes Includes FollowSymLinks
    		AllowOverride AuthConfig Limit FileInfo
        Require all granted
    	</Directory>
    </virtualhost>
    

After this, your mathjax lib path should be reachable through https.

comment:5 Changed 9 years ago by Szymon Cofalik

Resolution: fixed
Status: reviewclosed

Merged with git:b3a0c8c8a

comment:6 Changed 9 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.5.3

I changed location of the SSL cert: git:f81d7cf4f9c.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy