HOME BLOG PORTFOLIO PHOTO CONTACT Admin Login
SSL setup in XAMPP MacBookPro

 SSL setup in XAMPP MacBookPro

 

Youtube link is here : https://www.youtube.com/watch?v=gi1tQCvie2U 

 

 

 

 

SSL Install in XAMPP localhost in MacBook PRO

 

 

 

SSL localhost screenshot

 

 

 

Method1 start

 

Command1/5 (Going target location)

 

cd /Applications/XAMPP/xamppfiles/bin

 

 

Command2/5 (Generate CRT KEY SSL). Method2 next video

 

./openssl req -x509 -out localhost.crt -keyout localhost.key

-newkey rsa:2048 -nodes -sha256

-subj '/CN=localhost' -extensions EXT -config <(

printf "[dn]nCN=localhostn[req]ndistinguished_name = dnn[EXT]nsubjectAltName=DNS:localhostnkeyUsage=digitalSignaturenextendedKeyUsage=serverAuth")

 

 

Command3/5 (cut paste command)

 

mv localhost.crt /Applications/XAMPP/xamppfiles/etc/ssl.crt/

 

mv localhost.key /Applications/XAMPP/xamppfiles/etc/ssl.key/

 

 

 

 

 

 

 

 

 

Command4/5 (Apache setting) httpd.config

   

<VirtualHost _default_:443>

    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"

    ServerName localhost:443

    SSLEngine on

    SSLCertificateFile "/Applications/XAMPP/xamppfiles/etc/ssl.crt/localhost.crt"

    SSLCertificateKeyFile "/Applications/XAMPP/xamppfiles/etc/ssl.key/localhost.key"

</VirtualHost>

 

 

 

Command5/5 (Restart command XAMPP)

 

sudo /Applications/XAMPP/xamppfiles/xampp restartapache

 

 

Output

 

https://localhost/bharatbaba.com/

 

https://127.0.0.1/bharatbaba.com/

Method1 close

 

 

 

Method2 for Command2 (Generate CRT KEY SSL)

 

jaybharat@Jays-MacBook-Pro jay-ssl % openssl genrsa -out server.key 2048

 

jaybharat@Jays-MacBook-Pro jay-ssl % openssl rsa -in server.key -out server.pub -pubout

 

jaybharat@Jays-MacBook-Pro jay-ssl % openssl req -new -key server.key -out server.csr

-subj "/C=IN/ST=KA/L=Bangalore/O=Bharatbaba technologies/CN=localhost.com/emailAddress=jaybharatjay@gmail.com"

 

jaybharat@Jays-MacBook-Pro jay-ssl % cat server.csr

-----BEGIN CERTIFICATE REQUEST-----

MIIC1TCCAb0CAQAwgY8xCzAJBgNVBAYTAklOMQswCQYDVQQIDAJLQTESMBAGA1UE

BwwJQmFuZ2Fsb3JlMSAwHgYDVQQKDBdCaGFyYXRiYWJhIHRlY2hub2xvZ2llczEW

MBQGA1UEAwwNbG9jYWxob3N0LmNvbTElMCMGCSqGSIb3DQEJARYWamF5YmhhcmF0

amF5QGdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOPl

KoZhMWpTBj7dNOcEpBgsqG6qRyJHVkuQObpS4xKSVt3ZrWbQVQ2wRzjWtgnciOII

/hPjpGSF0MSS/NKzhwouHkYK1Ho7CFDOhHSRRjfLVLNmcRPjLdzQd089zM5OhE1Z

W0lHk+awoi6qv6NZapoCsKV+2sQBtwZJmKG8uphA1DBy3dJS6N+cnLOS3Cxsak8c

B6yRoP73CK+wSDUpMV07sByHShAcr3eNd39WLBIuYpaiv8CjdF1HtiaRNbRyCS7s

O2M80anTtLjKcgARkaAmW8CxmSQpWJG1S1nijFwgKDe6260SlwS6xX+0TUdm71Hz

r/CtpYG05j0SVBKoqPcCAwEAAaAAMA0GCSqGSIb3DQEBCwUAA4IBAQBcNWKoAuIS

SfXryqg5I2xPqRYDYuaNTpaYsmNmUBBdJBsT9x3Rtu3SkWX9h4knsSWSTBMdpNuu

DqebJHJ+LQY309JBeqTdTlgseeydw6WPHXBsn7r8PkE2NUdjTOLCz81EoBa6Fo25

Pj6CfPE6rp3pALArex8IKe6qdq0Wo95WC1BRbi7KoZRPua8fM9Lhk8kNLsZNog5e

wPFRg4dCUfe3SNofSceYe/XFd4ngGwO4U2QgXiO+mgl54CCE6IkKHCJG4bJJLZhC

CkhASNzndFtPIIOA20jFweis22LtVttHOPcKbtmsp8YO3G8hn1Vkk5KbibG1q1CN

DTs51akv1rvM

-----END CERTIFICATE REQUEST-----

 

Method2 close

 

 

 

   Share on Facebook

Page views:793