Skip to main content

Certbot https certificate

 Install https certificate for apache

sudo apt install certbot python3-certbot-apache
cd /etc/apache2/sites-available/
ls
sudo cp 000-default.conf jankester-com.conf
sudo vi jankester-com.conf
sudo a2ensite jankester-com.conf
sudo a2dissite 000-default.conf
sudo apache2ctl configtest
cd /var/www/
ls
ls -l
sudo mkdir jankester-com
sudo mkdir jankester-com/public_html
sudo cp html/* jankester-com/public_html/.
sudo apache2ctl configtest
sudo systemctl restart apache2
sudo ufw status
sudo certbot --apache
sudo apt-get install certbot python-certbot-apache
sudo apt-get install certbot python3-certbot-apache
sudo certbot --apache
sudo apt install certbot python3-certbot-apache
certbot --version
sudo apt install snapd
sudo snap install --classic certbot
/snap/bin/certbot --version
sudo /snap/bin/certbot --apache
cd jankester-com/public_html/

Comments

Popular posts from this blog

SSL handshake failed: Secure connection truncated

Got this problem on Ubuntu 9.10 and 10.10. svn co --username=xx https:/yy zz “SSL handshake failed: Secure connection truncated” According to this link bug-ubuntu The solution is: sudo apt-get install libneon27 cd /usr/lib/ sudo rm libneon-gnutls.so.27 sudo ln -s /usr/lib/libneon.so.27 libneon-gnutls.so.27

Interactive selenium testing

The problem Location of elements When I started using selenium, I noticed that it is not easy to do it right. First you start with IDE, but you notice, that the IDE does not really record a lot. In a next step I added firebug, and started analyzing how the elements where to be located: either by tag, id, class etc. Junit testcase With this information I could then create my junit testcase: @Test public void testMapView() throws Exception { //assert that we cannot see submenu of MapCreator elem = driver.findElement(By.className(SeleniumConstants.MAP_SUB_MENU)); String style = elem.getAttribute("style"); assertTrue("Element must have style display off.",style.matches("display: none.*")); logger.debug("Located element " + SeleniumConstants.MAP_SUB_MENU); //find menu and click on mapview elem = driver.findElement(By.id(SeleniumConstants.MAP_CONTROL)); actions.moveToElement(elem).click().perform(); //assert su...

Create a groovy console and bind to selenium

Required groovy files In the previous posting we defined the pom file that we need for our build environment. Now we will setup some groovy files to get selenium and groovy running interactively. ConsoleWaiter.groovy The idea of Groovy Console I found on some other sides. Honour goes for instance too: http://josefbetancourt.wordpress.com/tag/eclipse-2/ I copied some code of this, and put it under src/test/groovy/com/jankester/selenium/test/utils: package com.jankester.selenium.test.utils /** * File: ConsoleWaiter.groovy */ import groovy.lang.Binding; import groovy.ui.Console; /** * Provides a wrapper for the console. * * Based on source by John Green * Adapted from: http://www.oehive.org/files/ConsoleWaiter.groovy * Released under the Eclipse Public License * http://www.eclipse.org/legal/epl-v10.html * * I added methods to allow use from Java. * * The run() method launches the console and causes this thread * to sleep until the console's window is closed....