This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flask | |
from flask.ext.classy import FlaskView, route | |
from functools import wraps | |
def charset_utf8(viewmethod): | |
# Let's update the 'Content-Type' in the HTTP header to tell the browser that the data we're | |
# responding with has utf-8 character encoding. | |
@wraps(viewmethod) | |
def new_viewmethod(*args, **kwargs): | |
resp = viewmethod(*args, **kwargs) |
just change out app_name for your purposes
openssl genrsa 2048 > app_name-wildcard.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert
# Common Name (eg, your name or your server's hostname) []:*.app_name.com
openssl x509 -noout -fingerprint -text < app_name-wildcard.cert > app_name-wildcard.info
NewerOlder