> ## Content Index
> Fetch the complete content index at: https://blog.esadax.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Manually Uploading SSL Certificates via SSH on Apache/OpenSSL
- URL: https://blog.esadax.com/en/manually-uploading-ssl-certificates-via-ssh-on-apache-openssl/
- Published: 2026-11-15T04:16:08.000Z
- Updated: 2026-11-15T04:16:08.000Z
- Author: Esadax 
- Tags: #tr-faq-06-ssl-apache-opensslmodssl, #en, #mdx-imported, FAQ

To manually upload an SSL certificate using SSH, follow these organized steps:

1. **Connect to your server via SSH:**Replace `username` and `host.com` with your actual credentials.
2. **Navigate to the SSL directory on the server:**
  - Move into the directory or create it in the current location as needed.
3. **Create empty files for each SSL component (e.g., cert.pem, ca\_bundle.pem, privateKey.pem):**
4. **Transfer SSL files from your local machine:**
  - Replace paths with your server's directory structure.
5. **Alternative method: Paste directly into SSH session:**
  - Press Enter to start pasting, then press Ctrl+D to exit and save.
6. **Verify files:**
7. **Log out of the SSH session when done:**
  - Type `exit` or `logout` to terminate the connection.

Check each file after upload:

```
cat ssl/cert.pem

```

After creating the file on the server, paste the content:

```
cat - > ssl/cert.pem

```

Use SCP mode in SSH for secure and efficient transfer:

```
scp cert.pem username@host.com:/path/to/ssl/cert.pem
scp ca_bundle.pem username@host.com:/path/to/ssl/ca_bundle.pem
scp privateKey.pem username@host.com:/path/to/ssl/privateKey.pem

```

Use `touch` to create each file:

```
touch ssl/cert.pem
touch ssl/ca_bundle.pem
touch ssl/privateKey.pem

```

Create a new directory if needed:

```
mkdir ssl

```

Open a terminal and type:

```
ssh username@host.com

```