Monday, January 6, 2020

SSL Certificate on Tomcat server creation;

https://www.entrustdatacard.com/resource-center/installation/installation-help

https://www.endpoint.com/blog/2014/10/30/openssl-csr-with-alternative-names-one


openssl req -new -sha256 -nodes -out \*.your-new-domain.com.csr -newkey rsa:2048 -keyout \*.your-new-domain.com.key -config <( cat <<-EOF [req] default_bits = 2048 prompt = no default_md = sha256 req_extensions = req_ext distinguished_name = dn [ dn ] C=US ST=New York L=Rochester O=Organization OU=Department/Domain emailAddress=your-administrative-address@your-awesome-existing-domain.com CN = www.your-new-domain.com [ req_ext ] subjectAltName = @alt_names [ alt_names ] DNS.1 = your-new-domain.com DNS.2 = www.your-new-domain.com EOF )


Submit the request over to some Authority like Entrust Authority for digital identity.



Friday, December 6, 2019

Thursday, September 13, 2018

Read S3 file from AWS lambda NodeJS

var AWS = require('aws-sdk');
var s3 = new AWS.S3();

exports.handler = function(event, context, callback) {

    // Retrieve the bucket & key for the uploaded S3 object that
    // caused this Lambda function to be triggered
    // var src_bkt = event.Records[0].s3.bucket.name;
    // var src_key = event.Records[0].s3.object.key;
   
    var src_bkt = "app-proc-results";
            var src_key = "app.csv";
       

    // Retrieve the object
    s3.getObject({
        Bucket: src_bkt,
        Key: src_key
    }, function(err, data) {
        if (err) {
            console.log(err, err.stack);
            callback(err);
        } else {
            console.log("Raw text:\n" + data.Body.toString('ascii'));
            callback(null, null);
        }
    });
};

https://stackoverflow.com/questions/30651502/how-to-get-contents-of-a-text-file-from-aws-s3-using-a-lambda-function


Thursday, August 30, 2018

FND Profile Option for Navigating to a Home Page - EBS ModPLSQL

If main menu icon points to different url or another environment in Oracle EBS 12.1.3 ModPLSQL Screen- 

Updating profile option(APPS_PORTAL) should fix the issue


declare
begin APPS.<PACAKGENAME>.saveProfileOption('APPS_PORTAL', 'https://<host>:8001/OA_HTML/OA.jsp?OAFunc=OAHOMEPAGE');
end;



Monday, June 4, 2018

Restart WordPress webserver


sudo /etc/init.d/httpd restart 

or 

apachectl restart

There was a problem starting the Subversion server! SVN Edge

When you get this error, please check logs @







Then check for /***tmp/csvn/data/conf/httpd.conf file and see if the server root is right/correct

ServerRoot "/***tmp/csvn"

Next starting the server on the portal should work fine