mysql -u root -p
(here I enter 'my_root_password' to get through the mysql prompt)
create database my_database;
GRANT ALL PRIVILEGES ON my_database.* TO 'my_user'@'localhost'
IDENTIFIED BY 'my_password' WITH GRANT OPTION;
mysql -u root -p
(here I enter 'my_root_password' to get through the mysql prompt)
create database my_database;
GRANT ALL PRIVILEGES ON my_database.* TO 'my_user'@'localhost'
IDENTIFIED BY 'my_password' WITH GRANT OPTION;
The stunnel source comes with an stunnel.pem
file. You can use this file if you wish. However it is not suggested. Everyone on the net has access to this pem file, thus everyone has access to this private data. The security of your SSL connection requires that no one else has access to this private data.
Let me repeat:
stunnel.pem
file shipped with stunnel except for testing. After testing out stunnel, you should generate your own key.
To do so, simply do a
make cert
This will run the following commands:
openssl req -new -x509 -days 365 -nodes -config stunnel.cnf -out stunnel.pem -keyout stunnel.pem
This creates a private key, and self-signed certificate. The arguments mean:
stunnel.cnf
stunnel.pem
stunnel.pem
This command will ask you the following questions:
Question | Example Answers |
---|---|
Country name | PL, UK, US, CA |
State or Province name | Illinois, Ontario |
Locality | Chicago, Toronto |
Organization Name | Bill's Meats, Acme Anvils |
Organizational Unit Name | Ecommerce Division |
Common Name (FQDN) | www.example.com |
Important Note: The Common Name (FQDN) should be the hostname of the machine running stunnel. If you can access the machine by more than one hostname some SSL clients will warn you that the certificate is being used on the wrong host, so it's best to have this match the hostname users will be accessing.
openssl gendh 512 >> stunnel.pem
This generates Diffie-Hellman parameters, and appends them to the pem file. These are only needed if you specifically compile stunnel to use DH, which is not the default.
openssl x509 -subject -dates -fingerprint -in stunnel.pem
Display Connection Configuration: ipconfig /all
Display DNS Cache Info Configuration: ipconfig /displaydns
Clear DNS Cache: ipconfig /flushdns
Release All IP Address Connections: ipconfig /release
Renew All IP Address Connections: ipconfig /renew
Re-Register the DNS connections: ipconfig /registerdns
Change/Modify DHCP Class ID: ipconfig /setclassid
Network Connections: control netconnections
Network Setup Wizard: netsetup.cpl
Test Connectivity: ping www.whatismyip.com
Trace IP address Route: tracert
Displays the TCP/IP protocol sessions: netstat
Display Local Route: route
Display Resolved MAC Addresses: arp
Display Name of Computer Currently on: hostname
Display DHCP Class Information: ipconfig /showclassid
Powered by WordPress