To manually upload an SSL certificate using SSH, follow these organized steps:
Connect to your server via SSH:
ssh username@host.com
Replace username and host.com with your actual credentials.
Navigate to the SSL directory on the server:
mkdir ssl
Create empty files for each SSL component (e.g., cert.pem, ca_bundle.pem, privateKey.pem):
touch to create each file:
touch ssl/cert.pem
touch ssl/ca_bundle.pem
touch ssl/privateKey.pem
Transfer SSL files from your local machine:
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
Alternative method: Paste directly into SSH session:
cat - > ssl/cert.pem
Verify files:
cat ssl/cert.pem
Log out of the SSH session when done:
exit or logout to terminate the connection.