• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to create SSL certificate in OpenSUSE

1758

How to create SSL certificate in OpenSUSE

The SSL is a web protocol that is used to send traffic between server and client in a secured manner. It provides a secure and encrypted transactions between the browser and websites. This protocol generates a certificate which the end user has to authenticate themselves. This article will explain the installation of SSL certificate on OpenSUSE to initiate secure session.

Creation of SSL certificate

To start the creation of SSL certificate, create a key pair by executing the following command.

linuxhelp1:~ # openssl genrsa -des3 -out server.key -rand random
0 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
.
.
.
Enter pass phrase for server.key:
Verifying - Enter pass phrase for server.key:

Sign the created public key and create a digital certificate by running the following command.

linuxhelp1:~ # openssl req -new -x509 -key server.key -out server.crt
Enter pass phrase for server.key:
You are about to be asked to enter information that will be incorporated
into your certificate request.
.
.
.
Common Name (e.g. server FQDN or YOUR name) []:linuxhelp1
Email Address []:linuxhelp@gmail.com

Next, copy the Public Key and digital certificate to the below mentioned folders.

linuxhelp1:~ # cp server.key /etc/apache2/ssl.key/
linuxhelp1:~ # cp server.crt /etc/apache2/ssl.crt

Configure the OpenSSL in Apache configuration file as shown below.

linuxhelp1:~ # vim /etc/sysconfig/apache2
APACHE_SERVER_FLAGS=" SSL" 
APACHE_START_TIMEOUT=" 10" 

Copy the vhost-ssl.template file to the directed destination folder by executing the following command.

linuxhelp1:~ # cp /etc/apache2/vhosts.d/vhost-ssl.template /etc/apache2/vhosts.d/vhost-ssl.conf

Edit the default-server.conf file by running the following command.

linuxhelp1:~ # vim /etc/apache2/default-server.conf
Include /etc/apache2/conf.d/*.conf
Include /etc/apache2/vhosts.d/*.conf

Next configure the vhost-ssl.conf by executing the vim editor and enter the following content into the file as follows. Save and exit from the file.

linuxhelp1:~ # vim /etc/apache2/vhosts.d/vhost-ssl.conf
< IfDefine SSL> 
< IfDefine !NOSSL> 
< VirtualHost _default_:443> 
DocumentRoot " /srv/www/htdocs" 
 ServerName localhost:443
ErrorLog /var/log/apache2/error_log
TransferLog /var/log/apache2/access_log
 SSLEngine on
 SSLProtocol all -SSLv2
 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
 SSLCertificateFile /etc/apache2/ssl.crt/server.crt
 SSLCertificateKeyFile /etc/apache2/ssl.key/server.key
< FilesMatch " .(cgi|shtml|phtml|php)$" > 
            SSLOptions +StdEnvVars
        < /FilesMatch> 
        < Directory " /srv/www/cgi-bin" > 
            SSLOptions +StdEnvVars
        < /Directory> 
   BrowserMatch " MSIE [2-5]"  
   nokeepalive ssl-unclean-shutdown 
   downgrade-1.0 force-response-1.0
   CustomLog /var/log/apache2/ssl_request_log   ssl_combined
 < /VirtualHost> 
< /IfDefine> 
< /IfDefine> 

Now restart the Apache service and execute the network utility tool netstat for checking the TCP service.

linuxhelp1:~ # systemctl restart apache2.service
Enter SSL pass phrase for localhost:443 (RSA): **********

Check the https  port listening .
linuxhelp1:~ # netstat -an | grep 443
tcp        0      0 :::443                  :::*                    LISTEN    

Open the browser and check the SSL output by running the target system' s IP.

ssl certificate

A secure message is shown below.
secure page

The creation of SSL certificate in OpenSUSE is done successfully.

Tags:
grayson
Author: 

Comments ( 1 )

Sibgath
Iam getting domain name mismatch error in suselinux 10. 3 pls help me
Add a comment

Frequently asked questions ( 5 )

Q

Where you initiated open ssl in apache?

A

You shoud initiate at "/etc/sysconfig/apache2"

Q

How to Configure the OpenSSL in Apache configuration file?

A

Please follows the steps below here, "At "/etc/sysconfig/apache2" enter the following APACHE_SERVER_FLAGS="SSL" APACHE_START_TIMEOUT="10"".

Q

Do you have any utilities that can help me install a certificate?

A

Yes. If you are using Apache or IIS web servers, we offer a free utility which will help you generate a CSR, submit it to Comodo and then automatically install your certificate.

Q

When trying to go to the site over HTTPS it displays the message 'The page cannot be displayed'?

A

Here usually caused by port 443 not allowed through the firewall or by the SSL Certificate not having a corresponding key file.

Q

Why does the website say the SSL certificate is 'Untrusted'?

A

The usual cause of this is that the Comodo intermediate certificate has not been loaded.

Related Tutorials in How to create SSL certificate in OpenSUSE

Related Tutorials in How to create SSL certificate in OpenSUSE

Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How To Install SSL Certificate in RHEL/CentOS
How To Install SSL Certificate in RHEL/CentOS
May 23, 2016
How to Install and update openssl on opensuse15.1
How to Install and update openssl on opensuse15.1
Nov 15, 2019
How to create SSL certificate in OpenSUSE
How to create SSL certificate in OpenSUSE
Aug 12, 2017
How to Install AnyDesk on opensuse15.1
How to Install AnyDesk on opensuse15.1
Oct 30, 2019
How to configure Apache Virtual Host in OpenSUSE
How to configure Apache Virtual Host in OpenSUSE
Nov 1, 2016
How to install Webmin in OpenSUSE
How to install Webmin in OpenSUSE
Nov 7, 2016
How to Install mod_ssl and SSL certificate on Oracle Linux
How to Install mod_ssl and SSL certificate on Oracle Linux
Dec 30, 2021

Related Forums in How to create SSL certificate in OpenSUSE

Related Forums in How to create SSL certificate in OpenSUSE

Pligg
aiden class=
CMS : Pligg install on opensuse
Oct 6, 2017
Apache
rebeccajazz class=
Apache2 : mod_proxy in opensuse
Jan 3, 2018
OpenSUSE
dalogui class=
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web
Jul 15, 2019
OpenSUSE
victorsamuel class=
exec: "git": executable file not found in $PATH
Nov 16, 2017
SSL-Certificate
michael class=
curl: (60) Peer certificate cannot be authenticated with known CA certificates
Apr 26, 2017
OpenSUSE
lucas class=
best browser for OpenSUSE
Apr 17, 2017
Apache
rolando class=
How to find apache user in opensuse
Sep 23, 2017
SSL-Certificate
michael class=
how to add ssl certificate in linux
May 17, 2017

Related News in How to create SSL certificate in OpenSUSE

Related News in How to create SSL certificate in OpenSUSE

openSUSE Leap 42.3 Officially Released
openSUSE Leap 42.3 Officially Released
Jul 27, 2017
Tyson Foods Honored as SUSE Customer of the Year
Tyson Foods Honored as SUSE Customer of the Year
Feb 11, 2017
SUSE Soon To Be Largest Independent Linux Vendor
SUSE Soon To Be Largest Independent Linux Vendor
Apr 14, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.