sudo openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout mykey.key -out mycer.crt -subj '/CN=main.example.net' -addext 'subjectAltName=DNS:alt1.example.net,DNS:alt2.example.net'
Showing posts with label security. Show all posts
Showing posts with label security. Show all posts
Thursday, October 6, 2022
Online openssl private certificate and key with alternative DNS
Openssl added a nice alternative to the config file or extention to create requests with alternative DNS.
This will create a key and certificate (not certificate request) with two additional DNS alt1.example.net and alt2.example.net
Monday, July 12, 2010
URL - safe and unsafe characters
"Unsafe characters" | |||||||||||||||||||||||||
| Why: | Some characters present the possibility of being misunderstood within URLs for various reasons. These characters should also always be encoded. | |||||||||||||||||||||||
Characters: |
|
"Reserved characters" | |||||||
| Why: | URLs use some characters for special use in defining their syntax. When these characters are not used in their special role inside a URL, they need to be encoded. | |||||
Characters: |
|
Labels:
escaping,
html,
rfc,
security,
url entities,
validation
Monday, March 8, 2010
Disable at runtime selinux
There are times when you need to test something quick and selinux is in your way ... what do you do then ?
Instead of going with a full reboot you can just do the following
echo 0 > /selinux/enforce
This will disable the selinux at runtime. If the system is configured with selinux enabled into his config file
(on redhat/centos /etc/sysconfig/selinux ) next time you reboot it will be enable.
To enable at runtime
echo 1 > /selinux/enforce
Instead of going with a full reboot you can just do the following
echo 0 > /selinux/enforce
This will disable the selinux at runtime. If the system is configured with selinux enabled into his config file
(on redhat/centos /etc/sysconfig/selinux ) next time you reboot it will be enable.
To enable at runtime
echo 1 > /selinux/enforce
Labels:
command line,
linux,
security,
selinux,
sysadmin
Subscribe to:
Posts (Atom)