element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Raspberry Pi SSL Server
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 11 replies
  • Answers 2 answers
  • Subscribers 679 subscribers
  • Views 1658 views
  • Users 0 members are here
  • webserver
  • ssl
  • rasp_pi
Related

Raspberry Pi SSL Server

abhijitnathwani
abhijitnathwani over 8 years ago

Hello,

 

We have set up a Raspberry Pi webserver as a part of our project we are working on. The domain and IP has all been routed accordingly. Now we want to implement SSL security with the domain. The little green padlock is what we want to achieve.

 

P.S.: We have a free domain name so the service provider for domain won't help much.

 

Could anyone please guide us how to implement this on RPi ?

 

Abhijit

  • Sign in to reply
  • Cancel
Parents
  • balearicdynamics
    0 balearicdynamics over 8 years ago

    Hello Abhijit,

    As the Raspberry PI support raspbian that is a Debian distribution, I suggest to install openssl over apache; there is also the advantage that you have all open source components and with openssl installed you can create the self-certificate. This will give you the ssl behaviour to your webserver without the need to manage an expensive certificate authority.

    There is a well described tutorial on how to setup the openssl and self-certificate over apache in Debian in the Debian wiki at the following link: https://wiki.debian.org/Self-Signed_Certificate

     

    Hope this can be helpful.

     

    Enrico

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • rew
    0 rew over 8 years ago in reply to balearicdynamics

    On top of that, I would suggest you look into "letsencrypt".

     

    What Enrico suggests will give you a "self-signed" certificate: People who are passively intercepting the data between you and your users will not be able to see the content. But someone who can actively intercept the traffic can create his own self-signed certificate and pretend to be you (and then decrypt and re-encrypt the traffic to your server, peeking at the content when it is decrypted). That's why there will be a padlock, but red in the URL bar....

     

    letsencrypt will give you a free "official" certificate, resulting in the green padlock.

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • rew
    0 rew over 8 years ago in reply to balearicdynamics

    On top of that, I would suggest you look into "letsencrypt".

     

    What Enrico suggests will give you a "self-signed" certificate: People who are passively intercepting the data between you and your users will not be able to see the content. But someone who can actively intercept the traffic can create his own self-signed certificate and pretend to be you (and then decrypt and re-encrypt the traffic to your server, peeking at the content when it is decrypted). That's why there will be a padlock, but red in the URL bar....

     

    letsencrypt will give you a free "official" certificate, resulting in the green padlock.

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • balearicdynamics
    0 balearicdynamics over 8 years ago in reply to rew

    Great suggestion Roger. I will investigate and adopt it asap image

     

    Thank you. Enrico

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gadget.iom
    0 gadget.iom over 8 years ago in reply to rew

    On top of that, I would suggest you look into "letsencrypt".

    +1

    Came here with the same suggestion. But you beat me to it. image

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • abhijitnathwani
    0 abhijitnathwani over 8 years ago in reply to rew

    Hello Roger. Thank you for the suggestion. As per your suggestion, I looked into let's encrypt and followed a few tutorials out there. However, I was facing with some error "404. Could not find some file" in the acme-challenge folder. If you have worked on let's encrypt on RPi, please do help me here.

    I am going away for a long weekend. I do not have the RPi with  me as of now. I'll post the error messages once I'm back to work. Let me know if you could resolve them.

     

    Abhijit

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rew
    0 rew over 8 years ago in reply to abhijitnathwani

    I am terribly sorry, but I have not personally installed the letsencrypt stuff. A colleague suggested letsencrypt for my site a while back, and I'm in the fortunate position to be able to make him voluteer for the job of actually implementing it. And from what I hear, it's not that hard.

     

    Still, usually on Linux you get reasonable error messages. That means that if letsencrypt is looking for a file on YOUR server and gets a 404, you can look in the logfile to see their request to your webserver, and the server will log something to the effect that file XXX/YYY/ZZZ.html was not found.

     

    If on the other hand, you are getting a 404 somewhere else, you need to look into what URL was requested, and why it is now "gone". Maybe start back at the homepage?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • abhijitnathwani
    0 abhijitnathwani over 8 years ago in reply to rew

    rew, Thank you for the suggestions. Let's Encrypt was a savior and finally achieved the 'green padlock' for the domain.

     

    For the errors I was facing, I had already tweaked Apache configuration a lot many times to achieve the padlock and tried many different ways to generate the certs. So removing Apache and again setting up helped me resolve it. I was then able to successfully generate certificates using Let's Encrypt.

     

    If anybody needs the guide, let me know, I'll create a blog post.

     

    Abhijit.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bhavikbhansali
    0 bhavikbhansali over 8 years ago in reply to abhijitnathwani

    Yeah, abhijitnathwani is correct.

     

    As we try many different solutions so apache configuration file was disturbed. So we will remove entire apache and install it from zero and go with steps suggested by rew.

     

    Thanks for your suggestion

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube