# Unable to register against the Forest Admin server: self-signed certificate in certificate chain

**URL:** <https://community.forestadmin.com/t/unable-to-register-against-the-forest-admin-server-self-signed-certificate-in-certificate-chain/7991>\
**Category:** Help me!\
**Created:** [March 19, 2025, 6:54am UTC](https://community.forestadmin.com/t/unable-to-register-against-the-forest-admin-server-self-signed-certificate-in-certificate-chain/7991 "2025-03-19T06:54:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajith](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Ajith](https://community.forestadmin.com/u/Ajith)\
**Post date:** [March 19, 2025, 6:54am UTC](https://community.forestadmin.com/t/unable-to-register-against-the-forest-admin-server-self-signed-certificate-in-certificate-chain/7991/1 "2025-03-19T06:54:06Z")

</div>

Hi Team,  
I am getting the following error while running the command `forest login` in my local

` Unable to register against the Forest Admin server: self-signed certificate in certificate chain.`

## Context

- Project name: Yubi Invest - B2B2C
- Team name: B2B2C
- Environment name: Development
- Agent technology:rails
- Agent (forest package) name & version: forest\_liana (8.0.12)
- Database type: Postgres

---

<div class="post-metadata">

**Author:** ![Ajith](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Ajith](https://community.forestadmin.com/u/Ajith)\
**Post date:** [March 19, 2025, 7:45am UTC](https://community.forestadmin.com/t/unable-to-register-against-the-forest-admin-server-self-signed-certificate-in-certificate-chain/7991/2 "2025-03-19T07:45:26Z")

</div>

I tried adding the following command `export NODE_TLS_REJECT_UNAUTHORIZED=0`.  
After that `forest login` is working.  
But `forest init` is not working as expected.  
I am getting the following error

```javascript
forest init  
(node:50849) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
× Selecting your project
× This resource is not attached to an organization, which requires you to connect without using SSO 

```

Can you help me here?

---

<div class="post-metadata">

**Author:** ![Alban\_Bertolini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/alban_bertolini/32/1077_2.png) [@Alban\_Bertolini](https://community.forestadmin.com/u/Alban_Bertolini)\
**Post date:** [March 21, 2025, 9:07am UTC](https://community.forestadmin.com/t/unable-to-register-against-the-forest-admin-server-self-signed-certificate-in-certificate-chain/7991/3 "2025-03-21T09:07:36Z")

</div>

Hello @Ajith,  
Are you still stuck?

You are probably asking a project not related to your current organization. Please, `disconnect` from the Forest Admin app, `connect` yourself with the `right account` that is authorized to be connected to your project, re-run `forest login` and `forest init`.

You can follow this documentation to understand how works [forest init](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/init).

Best regards,  
Alban
