Skip to content

Instantly share code, notes, and snippets.

@malavolti
malavolti / selfsigned.py
Last active November 19, 2019 16:39 — forked from bloodearnest/selfsigned.py
Create a self-signed x509 certificate with python cryptography library
# Copyright 2018 Simon Davy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
<VirtualHost *:80>
ServerName "sp-<NUM>.aai-test.garr.it"
Redirect permanent "/" "https://sp-<NUM>.aai-test.garr.it/"
</VirtualHost>
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/var/run/ocsp(128000)
<VirtualHost *:443>
ServerName sp-<NUM>.aai-test.garr.it:443
ServerAdmin admin@aai-test.garr.it

Keybase proof

I hereby claim:

  • I am malavolti on github.
  • I am malavolti (https://keybase.io/malavolti) on keybase.
  • I have a public key ASCb8KRMErakjoiTEqLpco_fYW5G3FAVjl65MsvOmuqA8Ao

To claim this, I am signing this object: