# Producer error of with golang API on Ubuntu libcrypto.so

**URL:** <https://community.solace.com/t/producer-error-of-with-golang-api-on-ubuntu-libcrypto-so/1509>\
**Category:** Solace Event Broker\
**Tags:** golang\
**Created:** [December 9, 2022, 3:11pm UTC](https://community.solace.com/t/producer-error-of-with-golang-api-on-ubuntu-libcrypto-so/1509 "2022-12-09T15:11:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ulrich](https://avatars.discourse-cdn.com/v4/letter/u/dbc845/32.png) [@ulrich](https://community.solace.com/u/ulrich)\
**Post date:** [December 9, 2022, 3:11pm UTC](https://community.solace.com/t/producer-error-of-with-golang-api-on-ubuntu-libcrypto-so/1509/1 "2022-12-09T15:11:16Z")

</div>

Hi,  
I like to test a a golang based producer and I used the example code from [solace-samples-go/patterns/hello\_world.go at main · SolaceSamples/solace-samples-go · GitHub](https://github.com/SolaceSamples/solace-samples-go/blob/main/patterns/hello_world.go) \>  
I got the credentials generate from solace and also downloaded and referred the truststore pem file.  
When I start the program on an uptodate Ubuntu server I get the following error message.  
go run main.go

> 2022/12/09 15:07:03 log.go:41: ERROR solClientDL.c:374&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(7f103d8d1640) Could not load library ‘libcrypto.so’, error: /tmp/go-build1430335048/b001/exe/libcrypto.so: cannot open shared object file: No such file or directory  
> panic: an error occurred while connecting: Could not load library ‘libcrypto.so’, error: /tmp/go-build1430335048/b001/exe/libcrypto.so: cannot open shared object file: No such file or directory  
> goroutine 1 [running]:  
> main.main()  
> /…/main.go:47 +0x857  
> exit status 2

I did a basic research on google but didn’t find a solution.

---

<div class="post-metadata">

**Author:** ![Tamimi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tamimi/32/2190_2.png) [@Tamimi](https://community.solace.com/u/Tamimi)\
**Post date:** [December 12, 2022, 5:30pm UTC](https://community.solace.com/t/producer-error-of-with-golang-api-on-ubuntu-libcrypto-so/1509/2 "2022-12-12T17:30:09Z")

</div>

Hey @ulrich - I chatted with my colleague @mcardy and he mentioned that you’ll need to install openssl a simple apt install libssl-dev should fix your issue.

---

<div class="post-metadata">

**Author:** ![ulrich](https://avatars.discourse-cdn.com/v4/letter/u/dbc845/32.png) [@ulrich](https://community.solace.com/u/ulrich)\
**Post date:** [December 21, 2022, 5:20pm UTC](https://community.solace.com/t/producer-error-of-with-golang-api-on-ubuntu-libcrypto-so/1509/3 "2022-12-21T17:20:32Z")

</div>

yes, that solved the issue. THX!
