# Where to require openssl?

**URL:** <https://www.ruby-forum.com/t/where-to-require-openssl/172919>\
**Category:** Rails\
**Created:** [July 29, 2009, 11:55pm UTC](https://www.ruby-forum.com/t/where-to-require-openssl/172919 "2009-07-29T23:55:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [July 29, 2009, 11:55pm UTC](https://www.ruby-forum.com/t/where-to-require-openssl/172919/1 "2009-07-29T23:55:19Z")

</div>

Hi,

## In one of my models I need to use openssl, but I don’t know where to place the:

## require ‘openssl’

statement?

Should I put it in the model file? Should I create a file under  
config/initializers/requirements and place all my application wide  
require in there?

Best regards,

---

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [August 3, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/where-to-require-openssl/172919/2 "2009-08-03T14:55:24Z")

</div>

Fernando P. wrote:

> Hi,
> 
> ## In one of my models I need to use openssl, but I don’t know where to place the:
> 
> ## require ‘openssl’
> 
> statement?

I’d put it in config/environment.rb
