Skip to content

Instantly share code, notes, and snippets.

View sobelfallcayor's full-sized avatar

Abdourahamane Fall sobelfallcayor

  • Montreal
View GitHub Profile
@sobelfallcayor
sobelfallcayor / gist:b6bd25806a5a81ab72c54421f790fb18
Created July 8, 2022 15:12 — forked from mobmad/gist:433ba54e9cb97d6d7771
Create self-signed certificate for wiremock and configure a java client under test for HTTPS

1. Generate self-signed certificate

keytool -genkey -alias wiremock -keyalg RSA -keysize 1024 \
    -validity 365 -keypass password -keystore identity.jks -storepass password

Important: keypass must equal storepass, or else you'll receive java.io.IOException: !JsseListener: java.security.UnrecoverableKeyException: Cannot recover key

2. Start wiremock with the new keystore and HTTPS enabled

@sobelfallcayor
sobelfallcayor / Install-php7.md
Created September 28, 2016 08:50 — forked from hollodotme/Install-php7.md
Installing php7-fpm with phpredis and xdebug extension on Ubuntu 14.04

Install php7.0-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions